summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorSergei Nikulov <sergey.nikulov@gmail.com>2019-01-14 18:14:48 +0300
committerSergei Nikulov <snikulov@users.noreply.github.com>2019-01-15 07:11:56 +0300
commit383fd9dcb497e4da0de9452190102e627337546c (patch)
tree18d105d92169ef5c62d5b18538ad16e0847ed5f9 /.travis.yml
parentc54ee668dfec73885ca801dcc835d0bb569c46e9 (diff)
downloadgnurl-383fd9dcb497e4da0de9452190102e627337546c.tar.gz
gnurl-383fd9dcb497e4da0de9452190102e627337546c.tar.bz2
gnurl-383fd9dcb497e4da0de9452190102e627337546c.zip
travis: added cmake build for osx
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 3102a474c..d49d8f13a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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