-
Notifications
You must be signed in to change notification settings - Fork 2.3k
travis: Add compile check for all supported platforms #1070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
travis: Add compile check for all supported platforms #1070
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
ce66897
to
c02760a
Compare
c02760a
to
972c3aa
Compare
I have added
We should ignore |
At least now we know that it works 😄 |
Checking return code of Found this implementation in this comment. Updated test. |
.travis/complie_check.sh
Outdated
GOOS=$(echo ${dist} | cut -d "/" -f 1) | ||
GOARCH=$(echo ${dist} | cut -d "/" -f 2) | ||
set +e | ||
echo "Checking compile support for ${GOOS}/${GOARCH}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unnecessary. We already get 1 line of output for every GOOS/GOARCH pair. Either that it is skipped or that we're attempting a build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been updated to print one statement per platform.
256fbff
to
96d22ca
Compare
`linux/riscv64` platform was added in `go 1.11` but compile was not supported. Therefore buidling with `GOOS=linux GOARCH=riscv64` for `go 1.11` throws error. This check handles above case.
96d22ca
to
e2b4b5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
…1070) Implements a Travis CI task that checks if the driver compiles on all platforms supported by Go. Fixes go-sql-driver#1050
…1070) Implements a Travis CI task that checks if the driver compiles on all platforms supported by Go. Fixes go-sql-driver#1050
Description
Implements a Travis CI task that checks if the driver compiles on all platforms supported by Go.
Fixes #1050
Checklist