aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorMartin/Geno <geno+dev@fireorbit.de>2018-11-09 10:00:56 +0100
committerMartin/Geno <geno+dev@fireorbit.de>2018-11-09 11:06:31 +0100
commit9a4577340fbb9be0f3242bc704d598ef66a0f41e (patch)
tree68d26d54f38c34b9158a63ac4d9d937a7603918d /.circleci/config.yml
parent3a714cf31e5037a9fea03e66c5a28546e4eaf55a (diff)
ci: add .android to cache for keep same keystore for signing
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml13
1 files changed, 6 insertions, 7 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 0b2c076b8..49088ef81 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -6,7 +6,7 @@ jobs:
steps:
- checkout
- restore_cache:
- key: gradle
+ key: gradle-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }}
- run: export GRADLE_USER_HOME=$PWD/.gradle
- run: echo y | sdkmanager "platforms;android-$(sed -n 's,.*compileSdkVersion\s*\([0-9][0-9]*\).*,\1,p' build.gradle)" > /dev/null
- run: ./gradlew lint
@@ -14,7 +14,7 @@ jobs:
paths:
- .gradle/caches
- .gradle/wrapper
- key: gradle
+ key: gradle-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }}
- store_artifacts:
path: build/outputs/apk/standard
destination: apk
@@ -24,22 +24,21 @@ jobs:
steps:
- checkout
- restore_cache:
- key: gradle
+ key: android
- run: export GRADLE_USER_HOME=$PWD/.gradle
- run: echo y | sdkmanager "platforms;android-$(sed -n 's,.*compileSdkVersion\s*\([0-9][0-9]*\).*,\1,p' build.gradle)" > /dev/null
- run: ./gradlew assembleStandard
- save_cache:
paths:
- - .gradle/caches
- - .gradle/wrapper
- key: gradle
+ - ~/.android
+ key: android
- store_artifacts:
path: build/outputs/apk/standard
destination: apk
workflows:
version: 2
- build_only:
+ build_test:
jobs:
- build
- test