aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/travis/build-and-test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/travis/build-and-test b/tests/travis/build-and-test
index adc7bb48..09000e61 100755
--- a/tests/travis/build-and-test
+++ b/tests/travis/build-and-test
@@ -15,9 +15,13 @@ case "$CONFIG" in
;;
esac
-# pick up cmake files from homebrew
if [ "$(uname -s)" = "Darwin" ]; then
+ # pick up cmake files from homebrew
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5"
+else
+ # This hides all the paths that contain custom travis binaries like the
+ # updated version of cmake.
+ export PATH=/usr/sbin:/usr/bin:/sbin:/bin
fi
# build with code coverage