summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-11-23 23:13:17 +0100
committercyBerta <cyberta@riseup.net>2023-11-24 02:30:58 +0100
commit32578d46bea3e54cdd3021b0dd3fac4fb724267a (patch)
tree2677f77fbc9b43e229b41234408d11c308804aa9
parentdf4d500ecbd333973c31b76e9c948643190b9767 (diff)
cache library build artifacts and pass them to screenshot stage
-rw-r--r--.gitlab-ci.yml8
-rwxr-xr-xscripts/prepareForScreenshots.sh2
2 files changed, 4 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 88c886c0..1422d90a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,7 +77,6 @@ screenshot:
image: "0xacab.org:4567/leap/bitmask_android/android-fastlane:latest"
stage: test
when: always
-# needs: ["docker_image:fastlane"]
tags:
- birch
variables:
@@ -86,17 +85,15 @@ screenshot:
ANDROID_EMULATOR_USE_SYSTEM_LIBS: 1
DEBIAN_FRONTEN: "noninteractive"
# try to re-use the build artifcats from before, lib building is slow
-# dependencies:
-# - build
+ dependencies:
+ - build
script:
- - ./scripts/prepareForScreenshots.sh
- ./scripts/installFastlane.sh
- ./scripts/startEmulators.sh
- ./scripts/fastlane.sh
- ./scripts/fastlane.sh custom
artifacts:
paths:
- - app/build/screenshots
- src/custom/
- src/normal/
when: always
@@ -148,6 +145,7 @@ build:
- ./scripts/build_deps.sh >> build_deps.log 2>&1
- ./gradlew clean assembleNormalProductionFatDebug -debug >> build.log 2>&1
artifacts:
+ untracked: true
paths:
- app/build/outputs/
- build_deps.log
diff --git a/scripts/prepareForScreenshots.sh b/scripts/prepareForScreenshots.sh
index c2ae1bd5..0b38cfae 100755
--- a/scripts/prepareForScreenshots.sh
+++ b/scripts/prepareForScreenshots.sh
@@ -26,4 +26,4 @@ git submodule foreach --recursive git reset --hard HEAD
git submodule sync --recursive
git submodule update --init --recursive
-BUILD_TOR=false BUILD_OPENVPN_LIBS=false ./scripts/build_deps.sh
+./scripts/build_deps.sh