diff --git a/.travis.yml b/.travis.yml index 8295ad214f..6140bf58d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,8 +32,8 @@ before_install: install: - if [[ $OSX ]]; then brew install icu4c pango; brew link --force gettext; fi - if [[ $OSX ]]; then export ICU_ROOT=/usr/local/opt/icu4c ; fi - - wget https://www.cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.sh - - sudo sh cmake-3.7.2-Linux-x86_64.sh --skip-license --prefix=/usr + - if [[ $LINUX ]]; then wget https://www.cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.sh; fi + - if [[ $LINUX ]]; then sudo sh cmake-3.7.2-Linux-x86_64.sh --skip-license --prefix=/usr; fi - wget -O leptonica.zip https://github.com/DanBloomberg/leptonica/archive/$LEPT_VER.zip - unzip leptonica.zip -d . - cmake -Hleptonica-$LEPT_VER -Bleptonica-$LEPT_VER/build