open-nomad/scripts/travis-linux.sh
Mahmood Ali 76bc2a3fd0 ci: install lxc-templates explicitly
LXC package on Ubuntu 16.04 doesn't depend on lxc-template, but we
require it in our tests.
2018-12-11 15:49:11 -05:00

18 lines
501 B
Bash

#!/usr/bin/env bash
set -o errexit
#enable ipv6
echo '{"ipv6":true, "fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
# Ignore apt-get update errors to avoid failing due to misbehaving repo;
# true errors would fail in the apt-get install phase
apt-get update || true
apt-get install -y liblxc1 lxc-dev lxc lxc-templates shellcheck
apt-get install -y qemu
bash ./scripts/travis-rkt.sh
bash ./scripts/travis-consul.sh
bash ./scripts/travis-vault.sh