Skip to content
Snippets Groups Projects
Unverified Commit 72edd645 authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Improve CircleCI instrumentation test performance (DEV) (#2174)


* CircleCI: Improve instrumentation test caching.

* CircleCI: Improve instrumentation test caching. Iterating.

Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
parent 10a956b8
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ commands:
description: "Restore gradle caches"
steps:
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "Corona-Warn-App/build.gradle" }}-{{ checksum "Server-Protocol-Buffer/build.gradle" }}
key: gradle-v1-{{ arch }}-{{ checksum "build.gradle" }}-{{ checksum "Corona-Warn-App/build.gradle" }}-{{ checksum "Server-Protocol-Buffer/build.gradle" }}
save-gradle-cache:
description: "Save gradle caches"
......@@ -25,7 +25,22 @@ commands:
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "Corona-Warn-App/build.gradle" }}-{{ checksum "Server-Protocol-Buffer/build.gradle" }}
key: gradle-v1-{{ arch }}-{{ checksum "build.gradle" }}-{{ checksum "Corona-Warn-App/build.gradle" }}-{{ checksum "Server-Protocol-Buffer/build.gradle" }}
restore-android-build-cache-macos:
description: "Restore Android build caches on macOS"
steps:
- restore_cache:
key: android-buildcache-v1-{{ arch }}
save-android-build-cache-macos:
description: "Save Android build caches on macOS"
steps:
- save_cache:
paths:
- ~/.android/build-cache
- ~/.android/cache
key: android-buildcache-v1-{{ arch }}-{{ epoch }}
run-gradle-cmd:
description: "Running gradle command with environment options"
......@@ -428,11 +443,15 @@ jobs:
steps:
- checkout
- setup-android-macos
- restore-gradle-cache
- restore-android-build-cache-macos
- run-gradle-cmd:
desc: Build Apks for instrumentation test
cmd: >
:Corona-Warn-App:assembleDeviceDebug
:Corona-Warn-App:assembleDeviceDebugAndroidTest
- save-gradle-cache
- save-android-build-cache-macos
- run-emulator-for-api:
apilevel: 29
- run-gradle-cmd:
......@@ -466,11 +485,15 @@ jobs:
paths:
- vendor/bundle
- setup-android-macos
- restore-gradle-cache
- restore-android-build-cache-macos
- run-gradle-cmd:
desc: Build APKs for screenshots
cmd: >
:Corona-Warn-App:assembleDebug
:Corona-Warn-App:assembleAndroidTest
- save-gradle-cache
- save-android-build-cache-macos
- run-emulator-for-api:
apilevel: 29
- run:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment