1
0
mirror of https://github.com/eclipse/paho.mqtt.c.git synced 2025-05-06 18:25:48 +08:00
paho.mqtt.c/travis-install.sh
2020-01-11 16:05:32 +00:00

30 lines
797 B
Bash
Executable File

#!/bin/bash
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
pwd
sudo service mosquitto stop
# Stop any mosquitto instance which may be still running from previous runs
killall mosquitto
# mosquitto -h
# mosquitto -c test/tls-testing/mosquitto.conf &
git clone https://github.com/eclipse/paho.mqtt.testing.git
cd paho.mqtt.testing/interoperability
python3 startbroker.py -c localhost_testing.conf &
cd ../..
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 &
# brew upgrade python
git clone https://github.com/eclipse/paho.mqtt.testing.git
cd paho.mqtt.testing/interoperability
python3 startbroker.py -c localhost_testing.conf &
cd ../..
fi