travis-build.sh 649 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -e
  3. rm -rf build.paho
  4. mkdir build.paho
  5. cd build.paho
  6. echo "travis build dir $TRAVIS_BUILD_DIR pwd $PWD with OpenSSL root $OPENSSL_ROOT_DIR"
  7. cmake -DPAHO_BUILD_STATIC=$PAHO_BUILD_STATIC -DPAHO_BUILD_SHARED=$PAHO_BUILD_SHARED -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DOPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE -DPAHO_HIGH_PERFORMANCE=$PAHO_HIGH_PERFORMANCE -DPAHO_USE_SELECT=$PAHO_USE_SELECT ..
  8. cmake --build .
  9. python3 ../test/mqttsas.py &
  10. ctest -VV --timeout 600
  11. killall python3 || true
  12. sleep 3 # allow broker time to terminate and report
  13. #killall mosquitto
  14. cpack --verbose