diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2483681 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: go + +go: + - "1.x" + +notifications: + email: + on_success: never + on_failure: change + +sudo: false + +env: + - GO111MODULE=on + +before_install: + # Install linters and misspell + - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.14.0 + - golangci-lint --version + +install: + - echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION" + - go mod download + +deploy: + - provider: script + skip_cleanup: true + script: curl -sL https://git.io/goreleaser | bash + on: + tags: true + condition: $TRAVIS_GO_VERSION =~ ^1\.x$