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

sudo updates

parent 2a86f21c
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,9 @@ test:all:
- echo "REPO_USER=${REPO_USER}" > $CI_PROJECT_DIR/reporc
- echo "REPO_PASS=${REPO_PASS}" >> $CI_PROJECT_DIR/reporc
- sudo scripts/test/fixture.sh create -f src/test/clmctest/rspec.json -r $CI_PROJECT_DIR
- sudo lxc-attach -n test-runner -- cd /vagrant/src/test && python setup.py sdist --dist-dir=/vagrant/build
- sudo lxc-attach -n test-runner -- cd /vagrant/src/service && python setup.py sdist --dist-dir=/vagrant/build
- sudo mkdir /var/lib/lxc/test-runner/rootfs/vagrant/build
- sudo cp build/clmctest-SNAPSHOT.tar.gz /var/lib/lxc/test-runner/rootfs/vagrant/build
- sudo cp build/clmcservice-SNAPSHOT.tar.gz /var/lib/lxc/test-runner/rootfs/vagrant/build
- sudo lxc-attach -n test-runner -- pip3 install /vagrant/build/clmctest-SNAPSHOT.tar.gz
- sudo lxc-attach -n test-runner -- pip3 install /vagrant/clmcservice-SNAPSHOT.tar.gz
- sudo lxc-attach -n test-runner -- pytest -s --pyargs clmctest.scripts
......@@ -64,5 +65,5 @@ clean:
only:
- schedules
script:
- sudo /vagrant/scripts/test/fixtures.sh destroy -f /vagrant/src/test/clmctest/rspec.json
- sudo scripts/test/fixtures.sh destroy -f 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