-
Notifications
You must be signed in to change notification settings - Fork 209
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
Perform additional checks in Travis CI. #13
Comments
For reference, I've sent a similar change to |
Suggested script LGTM, but avoid the Unrelated to this repo, it would be really cool if there was a way to setup travis to send failures on |
SGTM, I'll do that.
This is an interesting idea. I have seen it suggested in the past, and we discussed what it would take to make that possible. Unfortunately, after spending 15~ mins I couldn't find where that discussion took place. :( IIRC, the general conclusion was that there are many false positives, and as a result, it ends up being quite optimal to rely on people manually peeking at the tip failures of their own projects from time to time, investigating the root cause, and reporting a detailed and helpful bug report upstream to Go only when the problem is indeed in the toolchain, rather than elsewhere. |
Ohhh, I found it! @dsnet, you were the person who made the suggestion. 😆 |
Ha... I often forget the very words I say :) |
@dsnet, in #9 (comment), I asked if you wanted a PR that adds a
gofmt
check to Travis CI, and you said "that would be great". So I sent #12 for that.However, I'd like to propose performing additional checks in CI. After years of iterating on it, I've arrived at the following
.travis.yml
script, which I generate for all my Go repositories:Here's an explanation of its features over the minimal
.travis.yml
change I sent in #12 that adds thegofmt
only:-s
flag withgofmt
to ensure code simplifications are made.-race
flag withgo test
to enable race detector.go vet
on the directory to catchvet
issues.go get -t -v ./...
step frominstall
step toscript
. This one is very minor and more of a personal preference, but it makes it so that if there's a build failure in any of the dependencies, the build appears as a red "failure", rather than a gray "error".@dsnet Let me know if you'd like any or all of the above enhancements, I'm happy to send a followup PR.
The text was updated successfully, but these errors were encountered: