Skip to content
Browse files

Travis-ci build: fix osx jpeg installation failure, git ambiguous arg…

…ument error (caused by merging commits) and add a workaround for travis commit range bug (#6227)

* fix travis-ci build bugs
install_macosx_deps: check if jpeg is installed, if not - upgrade it.
needs_compile: Check if $TRAVIS_COMMIT_RANGE is valid, if not, rewrite
the range with the correct one, and fix git ambiguous argument error.

* Changed detection method and removed commments
  • Loading branch information...
juozaspo authored and nerzhul committed Aug 20, 2017
1 parent c99dcba commit c8d3d1133945138108aa195e6b3c93b07c6e4fa0
Showing with 12 additions and 2 deletions.
  1. +12 −2 util/travis/
@@ -31,14 +31,24 @@ install_linux_deps() {
# Mac OSX build only
install_macosx_deps() {
brew update
brew install freetype gettext hiredis irrlicht jpeg leveldb libogg libvorbis luajit
brew install freetype gettext hiredis irrlicht leveldb libogg libvorbis luajit
if brew ls | grep -q jpeg; then
brew upgrade jpeg
brew install jpeg
#brew upgrade postgresql

# Relative to git-repository root:

needs_compile() {
git diff --name-only $TRAVIS_COMMIT_RANGE | egrep -q "^($TRIGGER_COMPILE_PATHS)"
if [[ "$(git diff --name-only $RANGE -- 2>/dev/null)" == "" ]]; then
echo "Fixed range: $RANGE"
git diff --name-only $RANGE -- | egrep -q "^($TRIGGER_COMPILE_PATHS)"

0 comments on commit c8d3d11

Please sign in to comment.
You can’t perform that action at this time.