From: Adam Stokes Date: Wed, 12 Jul 2017 21:34:09 +0000 (-0400) Subject: Expand integration tests to use stable/edge versions of juju (#155) X-Git-Tag: 0.6.1~4 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=commitdiff_plain;h=c50c361a8b9a3bbf1a33f5659e492b481f065cd2 Expand integration tests to use stable/edge versions of juju (#155) Signed-off-by: Adam Stokes --- diff --git a/.travis.yml b/.travis.yml index 9716fea..0a57c38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,14 +5,19 @@ python: - "3.5" before_install: - sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable -y - - sudo add-apt-repository ppa:juju/daily -y - sudo apt-get update -q - - sudo apt-get install lxd juju -y + - sudo apt-get install lxd snapd -y - sudo usermod -a -G lxd $USER + - sudo service lxd start || true - sudo lxd init --auto install: pip install tox-travis -before_script: - - sudo -E sudo -u $USER -E bash -c "juju bootstrap localhost test" -script: tox -e py35,integration -after_script: - - sudo -E sudo -u $USER -E bash -c "juju destroy-controller --destroy-all-models -y test" +env: + - SNAP_CMD="sudo snap install juju --classic --stable" + - SNAP_CMD="sudo snap install juju --classic --edge" +script: + - (eval "$SNAP_CMD") + - sudo ln -s /snap/bin/juju /usr/bin/juju || true + - sudo -E sudo -u $USER -E bash -c "/snap/bin/juju bootstrap localhost test" + - tox -e py35,integration + - sudo -E sudo -u $USER -E bash -c "/snap/bin/juju destroy-controller --destroy-all-models -y test" + - sudo snap remove juju