Skip to content
Snippets Groups Projects
Commit 3f9370e0 authored by MJB's avatar MJB
Browse files

on_failure added to ci

parent eb0776b1
No related branches found
No related tags found
No related merge requests found
variables:
TEST_PACKAGE_NAME: clmctest-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA-.tar.gz
BUILD_REF: $CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
TEST_PACKAGE_NAME: clmctest-$BUILD_REF-.tar.gz
stages:
- build
- test
- clean
build:tests:
stage: build
script:
- echo "$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA" > clmctest/git-commit-ref
- echo "$BUILD_REF" > clmctest/git-commit-ref
- python setup.py sdist --dist-dir=build
artifacts:
paths:
......@@ -22,14 +24,16 @@ test:
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 install /vagrant/build/$TEST_PACKAGE_NAME"
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.scripts"
- vagrant --fixture=monitoring -- up
- vagrant --fixture=scripts -- 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=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs"
after_script:
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs"
when: on_success
clean:
stage: clean
script:
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 uninstall -y clmctest"
- vagrant --fixture=inputs -- destroy --force
- vagrant --fixture=monitoring -- destroy --force
- vagrant --fixture=scripts -- destroy --force
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 uninstall -y clmctest"
when: on_success
\ No newline at end of file
when: on_failure
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment