|
@@ -2,8 +2,6 @@ language: go
|
2
|
2
|
|
3
|
3
|
go_import_path: github.com/google/pprof
|
4
|
4
|
|
5
|
|
-env: SKIP_GRAPHVIZ=0
|
6
|
|
-
|
7
|
5
|
matrix:
|
8
|
6
|
include:
|
9
|
7
|
- os: linux
|
|
@@ -52,8 +50,8 @@ addons:
|
52
|
50
|
|
53
|
51
|
before_install:
|
54
|
52
|
- go get -u github.com/golang/lint/golint honnef.co/go/tools/cmd/...
|
55
|
|
- - if (("$TRAVIS_OS_NAME" == "osx") && (!"$SKIP_GRAPHVIZ")); then brew update ; fi
|
56
|
|
- - if (("$TRAVIS_OS_NAME" == "osx") && (!"$SKIP_GRAPHVIZ")); then brew install graphviz; fi
|
|
53
|
+ - if [[ "$TRAVIS_OS_NAME" == "osx" && -z $SKIP_GRAPHVIZ ]]; then brew update ; fi
|
|
54
|
+ - if [[ "$TRAVIS_OS_NAME" == "osx" && -z $SKIP_GRAPHVIZ ]]; then brew install graphviz; fi
|
57
|
55
|
|
58
|
56
|
script:
|
59
|
57
|
- gofmtdiff=$(gofmt -s -d .) && if [ -n "$gofmtdiff" ]; then printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1; fi
|