summaryrefslogtreecommitdiffhomepage
path: root/.travis/tests.sh
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2018-09-06 15:39:04 +0100
committerGitHub <noreply@github.com>2018-09-06 15:39:04 +0100
commit0fed7fcaaa86b0c08a79a826a421d32afc68404f (patch)
tree654ce58b5b49e48e4ef7f5de3e17d7b616dbbdb8 /.travis/tests.sh
parent1555d8ae9642629d8ef214d895d8bccadd247f2f (diff)
Test that we do not break router7 builds (#152)
Diffstat (limited to '.travis/tests.sh')
-rwxr-xr-x.travis/tests.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.travis/tests.sh b/.travis/tests.sh
index ce77be6..c08ecdb 100755
--- a/.travis/tests.sh
+++ b/.travis/tests.sh
@@ -13,3 +13,15 @@ for d in $(go list ./... | grep -v vendor); do
rm profile.out
fi
done
+
+# check that we are not breaking some projects that depend on us. Remove this after moving to
+# Go versioned modules, see https://github.com/insomniacslk/dhcp/issues/123
+
+# from https://github.com/rtr7/router7/blob/aa404c3c54d9ad655479d7978ed18e81fe6ca05c/.travis.yml#L14
+# TODO: get rid of this once https://github.com/google/gopacket/pull/470 is merged
+go get github.com/google/gopacket/pcapgo
+(cd $GOPATH/src/github.com/google/gopacket && wget -qO- https://patch-diff.githubusercontent.com/raw/google/gopacket/pull/470.patch | patch -p1)
+
+go get github.com/rtr7/router7/cmd/...
+cd "${GOPATH}/src/github.com/rtr7/router7"
+go build github.com/rtr7/router7/cmd/...