2019-02-10 11:55:07 +02:00
|
|
|
---
|
|
|
|
language: go
|
|
|
|
|
2019-08-06 23:46:28 +03:00
|
|
|
sudo: required
|
|
|
|
|
2019-02-10 11:55:07 +02:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
2019-08-06 23:46:28 +03:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get -qq update
|
|
|
|
- sudo apt-get install -y rpm
|
|
|
|
|
2019-02-10 11:55:07 +02:00
|
|
|
script:
|
2019-08-06 23:46:28 +03:00
|
|
|
- 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
|