From 7212d0e7d816af2d397df05ca4dbc162abb02e33 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sat, 9 Mar 2019 08:49:22 +1100 Subject: [PATCH] another travis script change for osx --- .travis/after_success.sh | 11 ++++++++--- .travis/install.sh | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis/after_success.sh b/.travis/after_success.sh index 12af6a270..49abb190e 100644 --- a/.travis/after_success.sh +++ b/.travis/after_success.sh @@ -2,15 +2,20 @@ # Check if there's been a new commit since this build, and if so don't upload it +GREP_PATH=grep -REMOTE=$(curl -s -N https://api.github.com/repos/olive-editor/olive/commits/master | grep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1) +if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + GREP_PATH=ggrep +fi + +REMOTE=$(curl -s -N https://api.github.com/repos/olive-editor/olive/commits/master | $GREP_PATH -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1) LOCAL=$(git rev-parse HEAD) if [ "$REMOTE" == "$LOCAL" ] then - echo "[INFO] This commit is still current. Uploading..." + echo "[INFO] Still current. Uploading..." else - echo "[INFO] This commit is no longer current. $REMOTE vs $LOCAL - aborting upload." + echo "[INFO] No longer current. $REMOTE vs $LOCAL - aborting upload." exit 0 fi diff --git a/.travis/install.sh b/.travis/install.sh index f64f89ec8..6c66fff79 100644 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -3,7 +3,7 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ffmpeg qt5 grep - export PATH="/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/qt/bin:/usr/local/opt/python@2/libexec/bin:$PATH" + export PATH="/usr/local/opt/qt/bin:/usr/local/opt/python@2/libexec/bin:$PATH" elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then