travis: explicitly point to openssl on osx
authorAndy Green <andy@warmcat.com>
Sat, 8 Oct 2016 12:15:13 +0000 (20:15 +0800)
committerAndy Green <andy@warmcat.com>
Sat, 8 Oct 2016 12:15:13 +0000 (20:15 +0800)
One day this started failing at CMake autofind. This forces it to look at the right place.

.travis.yml

index dd17eba..228936c 100644 (file)
@@ -20,7 +20,8 @@ language: c
 install:
   - ./travis_install.sh
 script:
-  - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then mkdir build && cd build && cmake $CMAKE_ARGS .. && cmake --build .; fi
+  - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$TRAVIS_OS_NAME" = "osx" ]; then mkdir build && cd build && cmake -DOPENSSL_ROOT_DIR="/usr/local/opt/openssl" $CMAKE_ARGS .. && cmake --build .; else if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$TRAVIS_OS_NAME" = "linux" ]; then mkdir build && cd build && cmake $CMAKE_ARGS .. && cmake --build .; fi ; fi
+sudo: required
 dist: trusty
 addons:
   coverity_scan: