Update build utilities for more general use

This commit is contained in:
Ian Craggs 2017-07-19 16:29:36 +01:00
parent 8ab74c01b4
commit 2af6d89566
3 changed files with 12 additions and 24 deletions

View File

@ -2,26 +2,14 @@
set -e
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
mkdir build.paho
cd build.paho
echo "travis build dir $TRAVIS_BUILD_DIR pwd $PWD"
cmake -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE ..
make
python ../test/mqttsas2.py &
ctest -VV --timeout 600
kill %1
killall mosquitto
fi
rm -rf build.paho
mkdir build.paho
cd build.paho
echo "travis build dir $TRAVIS_BUILD_DIR pwd $PWD"
cmake -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE ..
make
python ../test/mqttsas2.py &
ctest -VV --timeout 600
kill %1
killall mosquitto
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
mkdir build.paho
cd build.paho
echo "travis build dir $TRAVIS_BUILD_DIR pwd $PWD"
cmake -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE ..
make
python ../test/mqttsas2.py &
ctest -VV --timeout 600
kill %1
killall mosquitto
fi

View File

@ -1,2 +1,2 @@
export TRAVIS_OS_NAME=linux
export TRAVIS_BUILD_DIR=/home/icraggs/git/paho.mqtt.c
export TRAVIS_BUILD_DIR=$PWD

View File

@ -1,2 +1,2 @@
export TRAVIS_OS_NAME=osx
export TRAVIS_BUILD_DIR=/Users/icraggs/git/paho.mqtt.c
export TRAVIS_BUILD_DIR=$PWD