File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -125,5 +125,6 @@ script:
125125 - go test -v -covermode=count -coverprofile=coverage.out
126126 - go vet ./...
127127 - .travis/gofmt.sh
128+ - .travis/complie_check.sh
128129after_script :
129130 - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+ dist_list=$( go tool dist list)
4+
5+ for dist in ${dist_list} ; do
6+ GOOS=$( echo ${dist} | cut -d " /" -f 1)
7+ GOARCH=$( echo ${dist} | cut -d " /" -f 2)
8+ set +e
9+ GOOS=${GOOS} GOARCH=${GOARCH} go tool compile -V > /dev/null 2>&1
10+ if [[ $? -ne 0 ]]; then
11+ echo " Compile support for ${GOOS} /${GOARCH} is not provided; skipping"
12+ continue
13+ fi
14+ set -e
15+ echo " Building ${GOOS} /${GOARCH} "
16+ GOOS=${GOOS} GOARCH=${GOARCH} go build -o /dev/null
17+ done
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Achille Roussel <achille.roussel at gmail.com>
1616Alex Snast <alexsn at fb.com>
1717Alexey Palazhchenko <alexey.palazhchenko at gmail.com>
1818Andrew Reid <andrew.reid at tixtrack.com>
19+ Animesh Ray <mail.rayanimesh at gmail.com>
1920Arne Hormann <arnehormann at gmail.com>
2021Ariel Mashraki <ariel at mashraki.co.il>
2122Asta Xie <xiemengjun at gmail.com>
You can’t perform that action at this time.
0 commit comments