test: Fix travis so it pulls in our deps

This commit is contained in:
James Shubin
2016-10-19 04:27:17 -04:00
parent d3af9105ee
commit f196e5cca2
2 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,8 @@ go:
- 1.6 - 1.6
- 1.7 - 1.7
- tip - tip
sudo: false sudo: true
dist: trusty
before_install: 'git fetch --unshallow' before_install: 'git fetch --unshallow'
install: 'make deps' install: 'make deps'
script: 'make test' script: 'make test'

View File

@@ -23,7 +23,8 @@ if [ ! -z "$YUM" ]; then
fi fi
if [ ! -z "$APT" ]; then if [ ! -z "$APT" ]; then
$sudo_command $APT install -y libvirt-dev $sudo_command $APT install -y libvirt-dev || true
$sudo_command $APT install -y libpcap0.8-dev || true
fi fi
if [ $travis -eq 0 ]; then if [ $travis -eq 0 ]; then
@@ -38,7 +39,6 @@ if [ $travis -eq 0 ]; then
# one of these two golang tools packages should work on debian # one of these two golang tools packages should work on debian
$sudo_command $APT install -y golang-golang-x-tools || true $sudo_command $APT install -y golang-golang-x-tools || true
$sudo_command $APT install -y golang-go.tools || true $sudo_command $APT install -y golang-go.tools || true
$sudo_command $APT install -y libpcap0.8-dev || true
fi fi
fi fi