ci: add .android to cache for keep same keystore for signing

This commit is contained in:
Martin/Geno 2018-11-09 10:00:56 +01:00
parent 3a714cf31e
commit 9a4577340f
No known key found for this signature in database
GPG key ID: 9D7D3C6BFF600C6A
2 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -4,6 +4,7 @@ cache:
paths:
- .gradle/wrapper
- .gradle/caches
- .android
stages:
- build
@ -23,7 +24,7 @@ build:
paths:
- build/outputs/
build:
test:
stage: test
script:
- ./gradlew lint