File: .travis.yml

package info (click to toggle)
golang-github-google-pprof 0.0~git20200905.acf8798-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,640 kB
  • sloc: sh: 88; makefile: 4
file content (59 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download | duplicates (2)
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: xcode11
      go: master
    - os: osx
      osx_image: xcode11.1
      go: master
    - os: osx
      osx_image: xcode11.2
      go: master
    - os: osx
      osx_image: xcode11.3
      go: master
    - os: osx
      osx_image: xcode11.4
      go: master
    - os: osx
      osx_image: xcode11.5
      go: master
    - os: osx
      osx_image: xcode11.6
      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)