- sudo apt-get update -q
- sudo apt-get install lxd juju -y
- sudo usermod -a -G lxd $USER
- - 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"