summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2023-03-30 08:49:00 +0000
committercyberta <cyberta@riseup.net>2023-03-30 08:49:00 +0000
commit49adad2fabcee3077be729064409bfcfbc99fe01 (patch)
tree6017e01def3ab93167d2e3ddcaad34aaec97a6ff /.gitlab-ci.yml
parent26c71bc66038924f07cfba2f578138acaf126b68 (diff)
parent93bb86626e68c9820b7f40eebfc71c959ed0f047 (diff)
Merge branch 'fastlane' into 'master'
fastlane See merge request leap/bitmask_android!241
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/