X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=.travis.yml;h=b7e82d2964e0a07f12a8f4a2644bd3de268462f2;hb=8aca5190344dea43352b4d242291d729e3aa2328;hp=97b8cdb890aa1f1173aea5339233075c5ef40794;hpb=acd24720652b69f85759a63ea3aa8fd44258a5c4;p=osm%2FN2VC.git diff --git a/.travis.yml b/.travis.yml index 97b8cdb..b7e82d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,11 @@ before_install: - sudo add-apt-repository ppa:juju/daily -y - sudo apt-get update -q - sudo apt-get install lxd juju -y - - sudo newgrp lxd - - groups + - sudo usermod -a -G lxd $USER - 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"