blob: 013f14af804941fb7c46039b266156ac4e43eddc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
language: go
go: 1.13.x
install: true
env:
- GO111MODULE=on
before_script:
- bash <(curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.34.0)
script:
- golangci-lint run
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- go build
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
after_success:
- bash <(curl -s https://codecov.io/bash)
|