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_make.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

36 lines
466 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ "$COMPILER" == "" ]; then
COMPILER=g++;
fi
make CXX=$COMPILER VERBOSE=1
sudo make install
make CXX=$COMPILER VERBOSE=1 check
make clean
sudo make uninstall
pushd test/unit
make clean
popd
make CXX=$COMPILER VERBOSE=1 SSL=0
sudo make install
make CXX=$COMPILER VERBOSE=1 SSL=0 check
make clean
sudo make uninstall
pushd test/unit
make clean
popd
fi