2019-09-19 14:16:52 +03:00
|
|
|
language: go
|
2019-09-19 14:22:15 +03:00
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
2019-09-19 14:16:52 +03:00
|
|
|
go:
|
2019-09-19 14:22:15 +03:00
|
|
|
- '1.12'
|
|
|
|
- '1.13'
|
2020-08-03 14:45:16 +03:00
|
|
|
- '1.14'
|
2020-11-12 10:23:27 +03:00
|
|
|
- '1.15'
|
2019-09-19 14:16:52 +03:00
|
|
|
before_install:
|
2019-09-19 14:19:36 +03:00
|
|
|
- go mod tidy
|
2019-09-19 14:16:52 +03:00
|
|
|
script:
|
2020-10-20 15:19:36 +03:00
|
|
|
- go test ./... -v -cpu 2 -timeout 10s -race -cover -coverprofile=coverage.txt -covermode=atomic
|
2020-08-03 14:45:16 +03:00
|
|
|
- go get -v -u github.com/axw/gocov/gocov
|
|
|
|
- gocov convert ./coverage.txt | gocov report
|
2019-09-19 14:16:52 +03:00
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|