Skip to content
Snippets Groups Projects
Commit 72915ee8 authored by MJB's avatar MJB
Browse files

on_failure to clean up

parent 543136a7
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,6 @@ stages: ...@@ -9,7 +9,6 @@ stages:
build:tests: build:tests:
stage: build stage: build
script: script:
- echo $BUILD_REF
- echo "$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA" > clmctest/git-commit-ref - echo "$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA" > clmctest/git-commit-ref
- python setup.py sdist --dist-dir=build - python setup.py sdist --dist-dir=build
artifacts: artifacts:
...@@ -19,8 +18,6 @@ build:tests: ...@@ -19,8 +18,6 @@ build:tests:
test: test:
stage: test stage: test
dependencies:
- build:tests
script: script:
- vagrant --fixture=scripts -- up - vagrant --fixture=scripts -- up
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 install /vagrant/build/$TEST_PACKAGE_NAME" - vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 install /vagrant/build/$TEST_PACKAGE_NAME"
...@@ -29,7 +26,7 @@ test: ...@@ -29,7 +26,7 @@ test:
- vagrant --fixture=monitoring -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.monitoring" - vagrant --fixture=monitoring -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.monitoring"
- vagrant --fixture=inputs -- up - vagrant --fixture=inputs -- up
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs" - vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs"
when: manual when: on_success
clean: clean:
stage: clean stage: clean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment