Skip to content

Commit

Permalink
Detect when binutils are not installed on OSX and skip the test.
Browse files Browse the repository at this point in the history
Fixes google#342.
  • Loading branch information
aalexand committed Apr 3, 2018
1 parent 36d5638 commit d2fc7c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ matrix:
- os: osx
osx_image: xcode8.3
go: master
- os: osx
env: SKIP_BINUTILS=1
go: master

addons:
apt:
Expand All @@ -51,7 +54,7 @@ addons:
before_install:
- go get -u github.com/golang/lint/golint honnef.co/go/tools/cmd/...
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install binutils ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && -z $SKIP_BINUTILS ]]; then brew install binutils ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && -z $SKIP_GRAPHVIZ ]]; then brew install graphviz; fi

script:
Expand Down

0 comments on commit d2fc7c6

Please sign in to comment.