Skip to content
Snippets Groups Projects
Commit 29208b97 authored by MJB's avatar MJB
Browse files

on_failure to clean up

parent e2624704
No related branches found
No related tags found
No related merge requests found
stages: stages:
- build - build
- test - test
- clean
build:tests: build:tests:
stage: build stage: build
...@@ -23,15 +22,9 @@ test:all: ...@@ -23,15 +22,9 @@ test:all:
- vagrant --fixture=monitoring -- up - vagrant --fixture=monitoring -- up
- 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=inputs -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs" - vagrant --fixture=inputs -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs"
when: on_success after_script:
clean:
stage: clean
dependencies:
- test:all
script:
- vagrant --fixture=inputs -- destroy --force - vagrant --fixture=inputs -- destroy --force
- vagrant --fixture=monitoring -- destroy --force - vagrant --fixture=monitoring -- destroy --force
- vagrant --fixture=scripts -- destroy --force - vagrant --fixture=scripts -- destroy --force
when: always when: on_success
\ No newline at end of file
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