Skip to content

Commit

Permalink
shift from circle-ci to travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aylei committed Dec 21, 2018
1 parent a7cb57d commit ed3d6e5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 70 deletions.
70 changes: 0 additions & 70 deletions .circleci/config.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: go

go:
- "1.10.x"

env:
- DEP_VERSION="0.4.1"

before_install:
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep

install:
- dep ensure

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
- go get honnef.co/go/tools/cmd/megacheck

script:
- test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
- 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
- golint -set_exit_status $(go list ./...) # one last linter


0 comments on commit ed3d6e5

Please sign in to comment.