Skip to content

Commit a3a4ee8

Browse files
committed
ci: update circleci cache keys for gradle and add caching for bundler as well
1 parent 0df5903 commit a3a4ee8

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.circleci/config.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ commands:
99
- restore_cache:
1010
key: v1-gradle-wrapper-{{ arch }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
1111
- restore_cache:
12-
key: v1-gradle-cache-{{ arch }}-{{ checksum "build.gradle" }}
12+
key: v1-gradle-cache-{{ arch }}-{{ checksum "build.gradle" }}-{{ checksum "settings.gradle" }}-{{ checksum "gradle.properties" }}-{{ checksum "app/build.gradle.kts" }}
13+
restore_bundler_cache:
14+
steps:
15+
- restore_cache:
16+
key: v1-bundler-cache-{{ checksum "Gemfile.lock" }}
1317

1418
save_gradle_cache:
1519
steps:
@@ -20,7 +24,13 @@ commands:
2024
- save_cache:
2125
paths:
2226
- ~/.gradle/caches
23-
key: v1-gradle-cache-{{ arch }}-{{ checksum "build.gradle" }}
27+
key: v1-gradle-cache-{{ arch }}-{{ checksum "build.gradle" }}-{{ checksum "settings.gradle" }}-{{ checksum "gradle.properties" }}-{{ checksum "app/build.gradle.kts" }}
28+
save_bundler_cache:
29+
steps:
30+
- save_cache:
31+
paths:
32+
- vendor/bundle
33+
key: v1-bundler-cache-{{ checksum "Gemfile.lock" }}
2434

2535
executors:
2636
android-machine:
@@ -37,13 +47,15 @@ jobs:
3747
steps:
3848
- checkout
3949
- restore_gradle_cache
50+
- restore_bundler_cache
4051
- ruby/install-deps:
4152
with-cache: true
4253
- run:
4354
name: Fastlane - run all tests with coverage report
4455
command: |
4556
bundle exec fastlane testDev
4657
- save_gradle_cache
58+
- save_bundler_cache
4759
- run:
4860
name: Analyze on SonarCloud
4961
command: ./gradlew lintDebug sonar

0 commit comments

Comments
 (0)