-
Notifications
You must be signed in to change notification settings - Fork 4
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
Golint issues and CI #1
Comments
Yes, all this is being worked on, CI needs to be set up. It's a bit trickier to do than other projects I'm aware of for the sio to run tests (any ideas there?) I haven't used CodeClimate before, and it looks commercial to me. We will add at least builds, tests, race where appropriate. The others are more cosmetic and I've no experience with CodeClimate to get a feel of what it's worth, so let's wait a bit for them to see. |
Running the tests on Linux should be rather straight forward on Travis CI. Just With regards to testing on Mac, I can't offer any help. Sorry.
Haha., yeah. Skip CodeClimate. It definitely feels commercial. I only recently tried using it, and it did report some places in the code that could be cleaned up. But GolangCI metalinter is good too, and open source for that matter. What I'd recommend is:
For a quick howto on using adding Coveralls test coverage for Travis CI: see decomp/decomp#4 (comment) Edit: The goclean.sh script runs the following tasks. Feel free to adopt it in whichever way to suit your needs. # The script does automatic checking on a Go package and its sub-packages, including:
# 1. gofmt (http://golang.org/cmd/gofmt/)
# 2. goimports (http://godoc.org/golang.org/x/tools/cmd/goimports)
# 3. golint (https://github.com/golang/lint)
# 4. go vet (http://golang.org/cmd/vet)
# 5. race detector (http://blog.golang.org/race-detector)
# 6. test coverage (http://blog.golang.org/cover) |
Thanks for the pointers For questions regarding testing sio, I was referring the to the output being actually listened to and sound actually generated for capture. I have no idea how cloud CI might do that. I am not sure what sound devices ALSA will find either. |
Haha, yeah. That is a good point, seems quite difficult to test audio output; as if you emulate the output device, then perhaps the emulator works but the drivers (or libraries) for the real hardware doesn't. Sorry for the misunderstanding :) |
Closing as at least basic travis-ci is set up and lint cleanups incorporated. We can refine the CI over time. |
Sounds good. |
Issues reported by golint, excluding missing documentation.
Preferably, Travis-CI could be configured for each project to do these checks, and others.
For an example configuration file, see https://github.com/mewmew/mips/blob/master/.travis.yml which handles:
The text was updated successfully, but these errors were encountered: