summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2019-03-19 17:48:04 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2019-03-20 11:58:37 +0000
commit9641f9ada9dcf6f4ef6d17b0ade4886e5c7a61b7 (patch)
treef028f815a5ae8df5b7fe57c9c681089e67cb0b80
parente1b1e6c9d552cd960e1531023ead44c9f3408b45 (diff)
downloadbuildstream-jonathan/wsl-tests-manual.tar.gz
gitlab-ci: Make WSL tests only run automatically on masterjonathan/wsl-tests-manual
WSL tests may be run on non-master branches manually. WSL tests on master do not have "allow-failure" so we will be notified if it's failing.
-rw-r--r--.gitlab-ci.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c4d2c864a..210de8df4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -151,7 +151,7 @@ lint:
except:
- schedules
-tests-wsl:
+tests-wsl-master:
stage: test
variables:
LC_ALL: C.UTF-8
@@ -162,10 +162,27 @@ tests-wsl:
- mount
- df -h
- PATH=/root/.local/bin:$PATH tox --version
+ script:
+ - PATH=/root/.local/bin:$PATH ${TEST_COMMAND}
+ only:
+ - master
+tests-wsl-non-master:
+ stage: test
+ variables:
+ LC_ALL: C.UTF-8
+ LANG: C.UTF-8
+ tags:
+ - wsl
+ before_script:
+ - mount
+ - df -h
+ - PATH=/root/.local/bin:$PATH tox --version
script:
- PATH=/root/.local/bin:$PATH ${TEST_COMMAND}
- allow_failure: true
+ when: manual
+ except:
+ - master
# Automatically build documentation for every commit, we want to know
# if building documentation fails even if we're not deploying it.