diff --git a/.travis.yml b/.travis.yml index 56fcf25f2..40c230105 100644 --- a/.travis.yml +++ b/.travis.yml @@ -125,5 +125,6 @@ script: - go test -v -covermode=count -coverprofile=coverage.out - go vet ./... - .travis/gofmt.sh + - .travis/complie_check.sh after_script: - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci diff --git a/.travis/complie_check.sh b/.travis/complie_check.sh new file mode 100755 index 000000000..3bb3ed49d --- /dev/null +++ b/.travis/complie_check.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -e +dist_list=$(go tool dist list) + +for dist in ${dist_list}; do + GOOS=$(echo ${dist} | cut -d "/" -f 1) + GOARCH=$(echo ${dist} | cut -d "/" -f 2) + set +e + GOOS=${GOOS} GOARCH=${GOARCH} go tool compile -V > /dev/null 2>&1 + if [[ $? -ne 0 ]]; then + echo "Compile support for ${GOOS}/${GOARCH} is not provided; skipping" + continue + fi + set -e + echo "Building ${GOOS}/${GOARCH}" + GOOS=${GOOS} GOARCH=${GOARCH} go build -o /dev/null + done diff --git a/AUTHORS b/AUTHORS index 7dafbe2ec..5473a8df9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -16,6 +16,7 @@ Achille Roussel Alex Snast Alexey Palazhchenko Andrew Reid +Animesh Ray Arne Hormann Ariel Mashraki Asta Xie