Update .travis.yml

Added for Codecov
This commit is contained in:
TerraNovaUser 2019-08-06 23:46:28 +03:00 committed by GitHub
parent 75f484e024
commit 3ed1a85c7e
Failed to generate hash of commit

View file

@ -1,8 +1,30 @@
--- ---
language: go language: go
sudo: required
notifications: notifications:
email: false email: false
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y rpm
script: 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