forked from google/pprof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 1.2 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
60
language: go
go_import_path: github.com/google/pprof
matrix:
include:
- os: linux
go: 1.11.x
- os: linux
go: 1.12.x
- os: linux
go: master
- os: osx
osx_image: xcode8.3
go: 1.11.x
- os: osx
osx_image: xcode8.3
go: 1.12.x
- os: osx
osx_image: xcode8.3
go: master
- os: osx
osx_image: xcode9.4
go: 1.11.x
- os: osx
osx_image: xcode9.4
go: 1.12.x
- os: osx
osx_image: xcode9.4
go: master
- os: osx
osx_image: xcode10.1
go: 1.11.x
- os: osx
osx_image: xcode10.1
go: 1.12.x
- os: osx
osx_image: xcode10.1
go: master
addons:
apt:
packages:
- graphviz
homebrew:
packages:
- graphviz
update: true
before_install:
- 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
after_success:
- bash <(curl -s https://codecov.io/bash)