travis: explicitly point to openssl on osx
authorAndy Green <andy@warmcat.com>
Wed, 5 Oct 2016 01:52:39 +0000 (09:52 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 5 Oct 2016 02:15:24 +0000 (10:15 +0800)
One day this started failing at CMake autofind. This forces it to look at the right place.

.travis.yml

index 56dd54f..0bc3c12 100644 (file)
@@ -23,7 +23,7 @@ language: generic
 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: