diff --git a/.travis.yml b/.travis.yml index a147d2a..67b1937 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,30 @@ --- language: go +sudo: required + notifications: email: false +before_install: + - sudo apt-get -qq update + - sudo apt-get install -y rpm + script: - - go test ./... + - GO111MODULE=on go test ./... + - go test -race -coverprofile=coverage.txt -covermode=atomic ./... + +after_success: + - bash <(curl -s https://codecov.io/bash) + +deploy: + - provider: script + skip_cleanup: true + script: curl -sL https://git.io/goreleaser | bash + on: + tags: true + condition: "$TRAVIS_OS_NAME = linux" + +env: + matrix: + - GO111MODULE=on