Moved to CircleCI 2.0 configuration.
This commit is contained in:
parent
c526ac4057
commit
816ea9006e
1 changed files with 37 additions and 27 deletions
|
@ -1,30 +1,40 @@
|
||||||
version: 2
|
defaults: &defaults
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
working_directory: ~/code
|
working_directory: ~/code
|
||||||
docker:
|
|
||||||
- image: circleci/android:api-28
|
|
||||||
environment:
|
environment:
|
||||||
JVM_OPTS: -Xmx3200m
|
JVM_OPTS: -Xmx3200m
|
||||||
|
TERM: dumb
|
||||||
|
CI: true
|
||||||
|
|
||||||
|
defaults_gradle: &defaults_gradle
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
keys: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
||||||
- run:
|
|
||||||
name: Download Dependencies
|
|
||||||
command: ./gradlew androidDependencies
|
|
||||||
- save_cache:
|
|
||||||
paths:
|
|
||||||
- ~/.gradle
|
|
||||||
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Setup Google Services
|
name: Setup Google Services
|
||||||
command: echo $GOOGLE_SERVICES | base64 -di > app/google-services.json
|
command: echo $GOOGLE_SERVICES | base64 -di > app/google-services.json
|
||||||
|
- run:
|
||||||
|
name: Download Dependencies
|
||||||
|
command: ./gradlew androidDependencies
|
||||||
|
- save_cache:
|
||||||
|
paths: ~/.gradle
|
||||||
|
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
||||||
- run:
|
- run:
|
||||||
name: Run Tests
|
name: Run Tests
|
||||||
command: ./gradlew lint test
|
command: ./gradlew link test
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: app/build/reports
|
path: app/build/reports
|
||||||
destination: reports
|
destination: reports
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: app/build/test-results
|
path: app/build/test-results
|
||||||
|
|
||||||
|
version: 2.0
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_gradle:
|
||||||
|
<<: *defaults
|
||||||
|
|
||||||
|
docker:
|
||||||
|
- image: circleci/android:api-28
|
||||||
|
|
||||||
|
<<: *defaults_gradle
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue