Newer
Older
variables:
CONTAINER_NAME: clmctest-$CI_COMMIT_REF_NAME.tar.gz
- test
build:tests:
stage: build
script:
- python setup.py sdist --dist-dir=build
- echo build/clmctest-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA.tar.gz
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 install /vagrant/build/clmctest-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA.tar.gz"
- 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=inputs -- up
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs"
- vagrant --fixture=inputs -- destroy --force
- vagrant --fixture=monitoring -- destroy --force
- vagrant --fixture=scripts -- destroy --force