-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: Add compile check for all supported platforms (#1070)
Implements a Travis CI task that checks if the driver compiles on all platforms supported by Go. Fixes #1050
- Loading branch information
1 parent
dd9d356
commit 681ffa8
Showing
3 changed files
with
19 additions
and
0 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
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,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 |
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