1
0
mirror of https://github.com/eclipse/paho.mqtt.cpp.git synced 2025-06-04 16:34:26 +08:00
paho.mqtt.cpp/travis_build_autotools.sh
Guilherme Maciel Ferreira a5dbe7a8e6 Travis: move build commands to scripts
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
2017-05-29 11:10:39 -05:00

32 lines
605 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ "$COMPILER" == "" ]; then
COMPILER=g++;
fi
./bootstrap
rm -rf build_autotools/
mkdir build_autotools/
pushd build_autotools/
../configure CXX=$COMPILER --enable-samples=yes --enable-static=yes --enable-doc=no --with-ssl=no
make
make check
cat test-suite.log
popd
./bootstrap
rm -rf build_autotools/
mkdir build_autotools/
pushd build_autotools/
../configure CXX=$COMPILER --enable-samples=yes --enable-static=yes --enable-doc=yes --with-ssl=yes
make
make check
cat test-suite.log
popd
fi