From 55675d51f777a75538fe290d217a3f0696d476a3 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 18 Feb 2019 03:57:54 +0100 Subject: [PATCH] chore: adds TravisCI. --- .travis.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .travis.yml 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$