X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=.travis.yml;h=9716fea33658700e7c6101bdd4fa826de450f431;hb=refs%2Ftags%2F0.4.0;hp=66083d9a9df2bbaa507f0c3bd9919f5f1fa5cbce;hpb=e0c226fbdf8f50f570e09adff23576ed2271fbde;p=osm%2FN2VC.git diff --git a/.travis.yml b/.travis.yml index 66083d9..9716fea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,12 +9,10 @@ before_install: - sudo apt-get update -q - sudo apt-get install lxd juju -y - sudo usermod -a -G lxd $USER - - newgrp lxd - - groups - sudo lxd init --auto install: pip install tox-travis before_script: - - juju bootstrap localhost test -script: tox + - sudo -E sudo -u $USER -E bash -c "juju bootstrap localhost test" +script: tox -e py35,integration after_script: - - juju destroy-controller --destroy-all-models -y test + - sudo -E sudo -u $USER -E bash -c "juju destroy-controller --destroy-all-models -y test"