From 166b5d4addaa1be02b14745ecb096fbe94374ecc Mon Sep 17 00:00:00 2001 From: akwizgran Date: Fri, 29 Jan 2021 15:44:16 +0000 Subject: [PATCH] Run optional tests automatically for tags, otherwise manually. --- .gitlab-ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b4f5b5be..3ba487ba7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,8 +2,8 @@ image: briar/ci-image-android:latest stages: - test -- check_reproducibility - optional_tests +- check_reproducibility test: stage: test @@ -33,7 +33,7 @@ test_reproducible: only: - tags -optional_tests: +.optional_tests: stage: optional_tests before_script: - set -e @@ -52,4 +52,13 @@ optional_tests: - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/ +manual_tests: + extends: .optional_tests when: manual + except: + - tags + +pre_release_tests: + extends: .optional_tests + only: + - tags