Skip to content
Snippets Groups Projects
Commit 79e6366d authored by Michael Boniface's avatar Michael Boniface
Browse files

ci for givry

parent f3508e15
No related branches found
No related tags found
No related merge requests found
......@@ -45,17 +45,20 @@ test:all:
dependencies:
- build:tests
script:
# - echo "REPO_USER=${REPO_USER}" > reporc
# - echo "REPO_PASS=${REPO_PASS}" >> reporc
- vagrant --fixture=scripts -- up
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pip3 install /vagrant/build/clmctest-SNAPSHOT.tar.gz"
- vagrant --fixture=scripts -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.scripts"
- vagrant --fixture=monitoring -- up
- vagrant --fixture=monitoring -- ssh test-runner -- -tt "pip3 install /vagrant/build/clmcservice-SNAPSHOT.tar.gz"
- vagrant --fixture=monitoring -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.monitoring"
- vagrant --fixture=monitoring -- ssh test-runner -- -tt "pytest -s --pyargs clmcservice.tests"
- vagrant --fixture=inputs -- up
- vagrant --fixture=inputs -- ssh test-runner -- -tt "pytest -s --pyargs clmctest.inputs"
- echo "REPO_USER=${REPO_USER}" > reporc
- echo "REPO_PASS=${REPO_PASS}" >> reporc
- sudo /vagrant/scripts/test/fixtures.sh create -f /vagrant/src/test/clmctest/rspec.json
- sudo lxc-attach -n test-runner
- cd /vagrant/src/test
- python setup.py sdist --dist-dir=../../build
- cd ../../src/service
- python setup.py sdist --dist-dir=../../build
- pip3 install /vagrant/build/clmctest-SNAPSHOT.tar.gz
- pip3 install /vagrant/build/clmcservice-SNAPSHOT.tar.gz
- pytest -s --pyargs clmctest.scripts
- pytest -s --pyargs clmcservice.tests
- pytest -s --pyargs clmctest.inputs
- pytest -s --pyargs clmctest.monitoring
when: on_success
clean:
......@@ -63,5 +66,5 @@ clean:
only:
- schedules
script:
- python scripts/test/deleteallvms.py
when: always
\ No newline at end of file
- sudo /vagrant/scripts/test/fixtures.sh destroy -f /vagrant/src/test/clmctest/rspec.json
when: always
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