travis-install.sh 797 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. if [ "$TRAVIS_OS_NAME" == "linux" ]; then
  3. pwd
  4. sudo service mosquitto stop
  5. # Stop any mosquitto instance which may be still running from previous runs
  6. killall mosquitto
  7. # mosquitto -h
  8. # mosquitto -c test/tls-testing/mosquitto.conf &
  9. git clone https://github.com/eclipse/paho.mqtt.testing.git
  10. cd paho.mqtt.testing/interoperability
  11. python3 startbroker.py -c localhost_testing.conf &
  12. cd ../..
  13. fi
  14. if [ "$TRAVIS_OS_NAME" == "osx" ]; then
  15. pwd
  16. # brew update
  17. # brew install openssl mosquitto
  18. # brew services stop mosquitto
  19. # /usr/local/sbin/mosquitto -c test/tls-testing/mosquitto.conf &
  20. # brew upgrade python
  21. git clone https://github.com/eclipse/paho.mqtt.testing.git
  22. cd paho.mqtt.testing/interoperability
  23. python3 startbroker.py -c localhost_testing.conf &
  24. cd ../..
  25. fi