paho.mqtt.android/travis-install.sh
James Sutton 301a450017
Changing automated tests to use local mosquitto broker and re-enabling for travis-ci. (#264)
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
2017-11-17 14:26:01 +00:00

17 lines
342 B
Bash
Executable File

#!/bin/bash
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
pwd
sudo service mosquitto stop
mosquitto -h
mosquitto -c test/tls-testing/mosquitto.conf &
fi
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
pwd
brew update
brew install openssl mosquitto
brew services stop mosquitto
/usr/local/sbin/mosquitto -c test/tls-testing/mosquitto.conf &
fi