]> granicus.if.org Git - curl/commitdiff
travis: added cmake build for osx
authorSergei Nikulov <sergey.nikulov@gmail.com>
Mon, 14 Jan 2019 15:14:48 +0000 (18:14 +0300)
committerSergei Nikulov <snikulov@users.noreply.github.com>
Tue, 15 Jan 2019 04:11:56 +0000 (07:11 +0300)
.travis.yml

index 3102a474c947c2f111cecf0204905474726740cb..d49d8f13ab728c955137287b5cc77e12ebc9123d 100644 (file)
@@ -119,6 +119,9 @@ matrix:
         - os: osx
           compiler: clang
           env: T=normal
+        - os: osx
+          compiler: clang
+          env: T=cmake
         - os: linux
           compiler: gcc
           dist: trusty
@@ -347,10 +350,11 @@ script:
     - |
         set -eo pipefail
         if [ "$T" = "cmake" ]; then
-             mkdir build
-             cd build
-             cmake .. -DCURL_WERROR=ON
-             make
+             if [ $TRAVIS_OS_NAME = linux ]; then
+                cmake -H. -Bbuild -DCURL_WERROR=ON && cmake --build build
+             else
+                cmake -H. -Bbuild -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON && cmake --build build
+             fi
         fi
     - |
         set -eo pipefail