From 3ed1a85c7e158579c33135f1a5ca04c6d0ae100a Mon Sep 17 00:00:00 2001 From: TerraNovaUser <51765070+TerraNovaUser@users.noreply.github.com> Date: Tue, 6 Aug 2019 23:46:28 +0300 Subject: [PATCH] Update .travis.yml Added for Codecov --- .travis.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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