summaryrefslogtreecommitdiffhomepage
path: root/.travis/tests.sh
diff options
context:
space:
mode:
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/...