-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from dcbw/multi-network
Add support for multiple pod networks
- Loading branch information
Showing
127 changed files
with
10,832 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
language: go | ||
dist: trusty | ||
|
||
go: | ||
- 1.9.x | ||
- 1.10.x | ||
|
||
env: | ||
matrix: | ||
- TARGET=amd64 | ||
- TARGET=arm | ||
- TARGET=arm64 | ||
- TARGET=ppc64le | ||
- TARGET=s390x | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
# Ubuntu 14.04 (trusty) doesn't have a new enough util-linux for nsenter, | ||
# so we have to build it ourselves. | ||
before_install: | ||
- | ||
- wget https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.gz -qO - | tar -xz -C . | ||
- sudo apt-get update | ||
- sudo apt-get install -y libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool | ||
- pushd util-linux-2.24.1 | ||
- ./autogen.sh | ||
- ./configure | ||
- make | ||
- sudo cp ./nsenter /usr/bin | ||
- popd | ||
- rm -rf util-linux-2.24.1 | ||
|
||
install: | ||
- go get golang.org/x/tools/cmd/cover | ||
- go get github.com/modocache/gover | ||
- go get github.com/mattn/goveralls | ||
- go get -t ./... | ||
|
||
script: | ||
- make check | ||
|
||
notifications: | ||
email: false | ||
|
||
git: | ||
depth: 9999999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
cd $1 | ||
|
||
echo -n "Running tests " | ||
function testrun { | ||
bash -c "umask 0; PATH=$PATH go test $@" | ||
} | ||
if [ ! -z "${COVERALLS:-""}" ]; then | ||
# coverage profile only works per-package | ||
PKGS="$(go list ./... | xargs echo)" | ||
echo "with coverage profile generation..." | ||
i=0 | ||
for t in ${PKGS}; do | ||
testrun "-covermode set -coverprofile ${i}.coverprofile ${t}" | ||
i=$((i+1)) | ||
done | ||
gover | ||
goveralls -service=travis-ci -coverprofile=gover.coverprofile | ||
else | ||
echo "without coverage profile generation..." | ||
testrun "./..." | ||
fi | ||
|
Oops, something went wrong.