瀏覽代碼

Skip graphviz install on xcode6.4 (#270)

Margaret Nolan 7 年之前
父節點
當前提交
4b386c29ec
No account linked to committer's email address
共有 1 個檔案被更改,包括 7 行新增2 行删除
  1. 7
    2
      .travis.yml

+ 7
- 2
.travis.yml 查看文件

2
 
2
 
3
 go_import_path: github.com/google/pprof
3
 go_import_path: github.com/google/pprof
4
 
4
 
5
+env: SKIP_GRAPHVIZ=0
6
+
5
 matrix:
7
 matrix:
6
   include:
8
   include:
7
     - os: linux
9
     - os: linux
15
     - os: osx
17
     - os: osx
16
       osx_image: xcode6.4
18
       osx_image: xcode6.4
17
       go: 1.8.x
19
       go: 1.8.x
20
+      env: SKIP_GRAPHVIZ=1
18
     - os: osx
21
     - os: osx
19
       osx_image: xcode6.4
22
       osx_image: xcode6.4
20
       go: 1.9.x
23
       go: 1.9.x
24
+      env: SKIP_GRAPHVIZ=1
21
     - os: osx
25
     - os: osx
22
       osx_image: xcode6.4
26
       osx_image: xcode6.4
23
       go: master
27
       go: master
28
+      env: SKIP_GRAPHVIZ=1
24
     - os: osx
29
     - os: osx
25
       osx_image: xcode7.3
30
       osx_image: xcode7.3
26
       go: 1.8.x
31
       go: 1.8.x
47
       
52
       
48
 before_install:
53
 before_install:
49
   - go get -u github.com/golang/lint/golint honnef.co/go/tools/cmd/...   
54
   - go get -u github.com/golang/lint/golint honnef.co/go/tools/cmd/...   
50
-  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update          ; fi
51
-  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install graphviz; fi
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
52
 
57
 
53
 script:
58
 script:
54
   - gofmtdiff=$(gofmt -s -d .) && if [ -n "$gofmtdiff" ]; then printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1; fi
59
   - gofmtdiff=$(gofmt -s -d .) && if [ -n "$gofmtdiff" ]; then printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1; fi