Remove incorrect docstring
[osm/N2VC.git] / .travis.yml
index 4368ca0..b7e82d2 100644 (file)
@@ -5,14 +5,14 @@ python:
   - "3.5"
 before_install:
   - sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable -y
-  - sudo add-apt-repository ppa:juju/stable -y
+  - sudo add-apt-repository ppa:juju/daily -y
   - sudo apt-get update -q
   - sudo apt-get install lxd juju -y
-  - newgrp lxd
+  - 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"