1#!/bin/bash 2 3if [ "$TRAVIS_OS_NAME" == "linux" ]; then 4 pwd 5 sudo service mosquitto stop 6 # Stop any mosquitto instance which may be still running from previous runs 7 killall mosquitto 8 mosquitto -h 9 mosquitto & 10fi 11 12if [ "$TRAVIS_OS_NAME" == "osx" ]; then 13 pwd 14 brew update 15 brew install openssl mosquitto 16 brew services stop mosquitto 17 /usr/local/sbin/mosquitto -h 18 /usr/local/sbin/mosquitto & 19fi 20