forked from google/pprof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (52 loc) · 1.39 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Once https://github.com/actions/setup-go/pull/34 is finished, we can remove
# travis.ci altogether and move everything to Github Action.
language: go
go_import_path: github.com/google/pprof
matrix:
include:
- os: linux
go: master
- os: osx
osx_image: xcode10.3
go: master
- os: osx
osx_image: xcode10.3
go: 1.14.x
- os: osx
osx_image: xcode10.3
go: 1.15.x
- os: osx
osx_image: xcode11.3
go: master
- os: osx
osx_image: xcode11.3
go: 1.14.x
- os: osx
osx_image: xcode11.3
go: 1.15.x
- os: osx
osx_image: xcode11.6
go: master
- os: osx
osx_image: xcode12
go: master
addons:
apt:
packages:
- graphviz
homebrew:
packages:
- graphviz
update: true
before_install:
# Do not let tools interfere with the main module's go.mod
- env GO111MODULE=off go get -u golang.org/x/lint/golint honnef.co/go/tools/cmd/...
script:
- gofmtdiff=$(gofmt -s -d .) && if [ -n "$gofmtdiff" ]; then printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1; fi
- golintlint=$(golint ./...) && if [ -n "$golintlint" ]; then printf 'golint found:\n%s\n' "$golintlint" && exit 1; fi
- go vet -all ./...
- ./test.sh
# Check still works in GOPATH mode.
- env GO111MODULE=off go get -d . && go test -v ./...
after_success:
- bash <(curl -s https://codecov.io/bash)