travis: Switch to `xenial` dist

Update installation sequence to fit the Travis Xenial environment.

This should save us some time on binary deps as we no longer need
to install snapd and kernel packages mandated by spectre/meltdown
in the Travis ``trusty`` image.
This commit is contained in:
Frode Nordahl
2019-03-29 12:31:07 +01:00
parent edabe6ab00
commit 514482b5ea

View File

@@ -1,4 +1,5 @@
sudo: true
dist: xenial
language: python
python:
- "3.6"
@@ -12,13 +13,11 @@ comment: |
sudo back to ourself to activate lxd group membership executable search path
script:
- if [ $ENV = 'func-travis' ]; then
sudo apt-get -qq update;
sudo apt-get -y install snapd;
sudo apt remove -y --purge lxd lxd-client;
sudo snap install lxd;
sudo snap install juju --classic;
sudo sh -c 'echo PATH=/snap/bin:$PATH >> /etc/environment';
sudo lxd waitready;
sudo journalctl --no-pager -xe;
sudo lxd init --auto;
sudo usermod -a -G lxd travis;
sudo su travis -c 'juju bootstrap --debug --no-gui localhost';