Add CircleCI config.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
Yahor Berdnikau 2017-07-30 14:53:54 +02:00
parent f1041d247d
commit d97b7de6e2
1 changed files with 25 additions and 0 deletions

25
.circleci/config.yml Normal file
View File

@ -0,0 +1,25 @@
version: 2
jobs:
build:
docker:
- image: circleci/android:api-26-alpha
working_directory: ~/ultrasonic
envoronment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: gradle-cache-{{ checksum "dependencies.gradle" }}
- run:
name: checkstyle
command: ./gradlew -Pqc ktlintCheck
- run:
name: build
command: ./gradlew assembleDebug
- run:
name: unit-tests
command: ./gradlew test
- save_cache:
paths:
- ~/.gradle
key: gradle-cache-{{ checksum "dependencies.gradle" }}