summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@autistici.org>2023-02-23 11:31:39 +0100
committerkwadronaut <kwadronaut@autistici.org>2023-02-23 11:31:39 +0100
commit3e9b1d2d30080939257ec382c49a6294bae3f65a (patch)
tree850831006bd3904474a0a0420f7d4c6e66ef67ef /.gitlab-ci.yml
parentf756c4e3027838e54b177695619ef5460aca2fd6 (diff)
Add screengrab docker and ci
Still some issues on language change and virtual screens Basics are there.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml44
1 files changed, 43 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 286e6d45..7c9e8a54 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ variables:
image: 0xacab.org:4567/leap/docker/debian:bullseye_amd64
tags:
- docker-in-docker
+ - runner02-sea
services:
- docker:dind
@@ -51,6 +52,15 @@ docker_image:emulator:
allow_failure: true
<<: *build_docker_image
+docker_image:fastlane:
+ stage: docker_image_other
+ variables:
+ DOCKER_IMAGE: android-fastlane
+# DEFAULT_IMAGE: "registry.0xacab.org/leap/bitmask_android/android-emulator"
+ when: manual
+ <<: *build_docker_image
+ allow_failure: true
+
unit_test:
image: "0xacab.org:4567/leap/bitmask_android/android-ndk:latest"
stage: test
@@ -63,6 +73,38 @@ unit_test:
when: on_failure
expire_in: 3 days
+screenshot:
+ image: "0xacab.org:4567/leap/bitmask_android/android-fastlane:latest"
+ stage: test
+ when: always
+# needs: ["docker_image:fastlane"]
+ tags:
+ - birch
+ variables:
+ LC_ALL: "en_US.UTF-8"
+ LANG: "en_US.UTF-8"
+ ANDROID_EMULATOR_USE_SYSTEM_LIBS: 1
+ DEBIAN_FRONTEN: "noninteractive"
+# try to re-use the build artifcats from before, lib building is slow
+# dependencies:
+# - build
+ script:
+ - ./scripts/prepareForScreenshots.sh
+ - ./scripts/installFastlane.sh
+ - ./gradlew testCustomProductionFatReleaseUnitTest testNormalProductionFatReleaseUnitTest
+ - ./scripts/startEmulators.sh
+ - ./scripts/fastlane.sh
+ artifacts:
+ paths:
+ - app
+ - app/build/screenshots
+ - ./source/custom/fastlane/metadata/
+ - build/
+ - src/normal/
+ when: always
+ expire_in: 3 days
+ allow_failure: true
+
#ui_test:
# image: "0xacab.org:4567/leap/bitmask_android/android-emulator:latest"
# stage: test
@@ -106,7 +148,7 @@ build:
script:
- ./scripts/cleanProject.sh
- ./scripts/build_deps.sh >> build_deps.log 2>&1
- - ./gradlew clean assembleNormalProductionFatDebug --stacktrace >> build.log 2>&1
+ - ./gradlew clean assembleNormalProductionFatDebug -debug >> build.log 2>&1
artifacts:
paths:
- app/build/outputs/