Skip to content
Snippets Groups Projects
Commit 712eeccd authored by MJB's avatar MJB
Browse files

pip3 and commit ref name test

parent 3b685171
No related branches found
No related tags found
No related merge requests found
stages: stages:
- build - build
<<<<<<< HEAD
- test - test
=======
- test:scripts
- test:monitoring
- test:inputs
>>>>>>> 7b4334bb2ab788e29ddde9098efcba96c0447112
build:tests: build:tests:
stage: build stage: build
script: script:
- python setup.py sdist --dist-dir=build - python setup.py sdist --dist-dir=build
- echo $CI_COMMIT_REF_NAME
test: test:
stage: test stage: test
script: script:
- vagrant --fixture=scripts -- up - vagrant --fixture=scripts -- up
- vagrant --fixture=scripts -- ssh test-runner -- -tt "cd /vagrant && pytest clmctest/scripts/" - vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 install /vagrant/build/clmctest-$CI_COMMIT_REF_NAME.tar.gz"
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.scripts"
- vagrant --fixture=monitoring -- up - vagrant --fixture=monitoring -- up
- vagrant --fixture=monitoring -- ssh test-runner -- -tt "cd /vagrant && pytest clmctest/monitoring/" - vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.monitoring"
- vagrant --fixture=inputs -- up - vagrant --fixture=inputs -- up
- vagrant --fixture=inputs -- ssh test-runner -- -tt "cd /vagrant && pytest clmctest/inputs/" - vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs"
after_script: after_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: on_success when: manual
\ 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