From 179ff349bd78bfa7baf6e292bca3a7d5db7e85f3 Mon Sep 17 00:00:00 2001 From: MJB <mjb@it-innovation.soton.ac.uk> Date: Tue, 27 Mar 2018 09:37:20 +0100 Subject: [PATCH] on_failure to clean up --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d91c513..12b4df6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ stages: build:tests: stage: build script: + - echo $BUILD_REF - echo "$BUILD_REF" > clmctest/git-commit-ref - python setup.py sdist --dist-dir=build artifacts: @@ -19,6 +20,8 @@ build:tests: test: stage: test + dependencies: + - build script: - vagrant --fixture=scripts -- up - vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 install /vagrant/build/$TEST_PACKAGE_NAME" @@ -27,7 +30,7 @@ test: - vagrant --fixture=monitoring -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.monitoring" - vagrant --fixture=inputs -- up - vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs" - when: on_success + when: manual clean: stage: clean -- GitLab