X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=.travis.yml;h=b7e82d2964e0a07f12a8f4a2644bd3de268462f2;hb=0eba58d4267134e7f36665cb6bc481834abb7f9c;hp=66083d9a9df2bbaa507f0c3bd9919f5f1fa5cbce;hpb=e0c226fbdf8f50f570e09adff23576ed2271fbde;p=osm%2FN2VC.git diff --git a/.travis.yml b/.travis.yml index 66083d9..b7e82d2 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 + - sudo -E sudo -u $USER -E bash -c "juju bootstrap localhost test" script: tox 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"