Use 'set -e' just for catching errors in the travis install scripts and not after the scripts which use 'source' in .travis.yml. This is needed since Travis upgraded Xcode to 7.3 which has some errors due to bad exit code in Travis scripts using rvm, see: https://github.com/travis-ci/travis-ci/issues/6307 https://github.com/travis-ci/travis-ci/issues/6522
33 lines
557 B
Bash
Executable file
33 lines
557 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e # exit on failure (same as -o errexit)
|
|
|
|
sw_vers
|
|
brew update
|
|
brew list
|
|
# brew install pcre # Travis Xcode-7.3 has pcre
|
|
# brew install boost
|
|
|
|
WITHLANG=$SWIGLANG
|
|
|
|
case "$SWIGLANG" in
|
|
"csharp")
|
|
brew install mono
|
|
;;
|
|
"guile")
|
|
Tools/brew-install guile
|
|
;;
|
|
"lua")
|
|
brew install lua
|
|
;;
|
|
"python")
|
|
WITHLANG=$SWIGLANG$PY3
|
|
if [[ "$PY3" ]]; then
|
|
brew install python3
|
|
brew list -v python3
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
# Workaround for https://github.com/travis-ci/travis-ci/issues/6522
|
|
set +e # turn off exit on failure (same as +o errexit)
|