diff --git a/.travis.yml b/.travis.yml index 94bcbd00..b7ee8feb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,11 +28,12 @@ notifications: # flunk the build and immediately stop. It's sorta like having # set -e enabled in bash. before_script: -# - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/ - - go get github.com/golang/lint/golint # Linter - - go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter - - go get github.com/fzipp/gocyclo - - npm install -g typescript +# - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/ + - go get github.com/golang/lint/golint # Linter + - go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter + - go get github.com/fzipp/gocyclo # Cyclomatic complexity + - npm install -g typescript # TypeScript + - git clone --depth=1 https://github.com/animenotifier/database ~/.aero/db/arn # Database # script always run to completion (set +e). All of these code checks are must haves # in a modern Go project. @@ -40,7 +41,7 @@ script: - make deps # Get dependencies. Allow this to fail because components cannot be found. - make all # Build # - test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt -# - go test -v . # Run all the tests + - go test -v . # Run all the tests # - go test -v -race ./... # Run all the tests with the race detector enabled - go vet ./... # go vet is the official Go static analyzer - megacheck ./... # "go vet on steroids" + linter