forked from eclipse/paho.mqtt.c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-install.sh
executable file
·29 lines (25 loc) · 797 Bytes
/
travis-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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