add environment variable for osx build

Signed-off-by: Andreas Walter <andreas.walter@waltronix.de>
This commit is contained in:
Andreas Walter 2020-02-09 21:06:41 +01:00
parent ad155b1f52
commit 189325cd43
4 changed files with 11 additions and 19 deletions

View File

@ -1,17 +1,13 @@
sudo: required
language: c
compiler:
- gcc
- clang
os:
- linux
- osx
matrix:
exclude:
- compiler: gcc
os: osx
- compiler: clang
os: linux
jobs:
include:
- os: linux
compiler: gcc
env: OPENSSL_ROOT_DIR=
- os: osx
compiler: clang
env: OPENSSL_ROOT_DIR=/usr/local/opt/openssl
before_install:
#- if [ "$DEPLOY" = "true" ]; then ./travis-setup-deploy.sh; fi
- "./travis-install.sh"

View File

@ -5,9 +5,9 @@ set -e
rm -rf build.paho
mkdir build.paho
cd build.paho
echo "travis build dir $TRAVIS_BUILD_DIR pwd $PWD"
cmake -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE ..
make
echo "travis build dir $TRAVIS_BUILD_DIR pwd $PWD with OpenSSL root $OPENSSL_ROOT_DIR"
cmake -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DOPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE ..
cmake --build .
python3 ../test/mqttsas.py &
ctest -VV --timeout 600
cpack --verbose

View File

@ -1,2 +0,0 @@
export TRAVIS_OS_NAME=linux
export TRAVIS_BUILD_DIR=$PWD

View File

@ -1,2 +0,0 @@
export TRAVIS_OS_NAME=osx
export TRAVIS_BUILD_DIR=$PWD