1#!/bin/bash 2 3if [ "$COVERITY_SCAN_BRANCH" == 1 ]; then exit; fi 4 5if [ "$TRAVIS_OS_NAME" == "linux" ]; 6then 7 sudo apt-get update -qq 8 9 if [ "$LWS_METHOD" == "lwsws" -o "$LWS_METHOD" == "lwsws2" ]; 10 then 11 sudo apt-get install -y -qq realpath libjemalloc1 libev4 libuv-dev libdbus-1-dev valgrind mosquitto 12 sudo apt-get remove python-six 13 sudo pip install "six>=1.9" 14 sudo pip install "Twisted==16.0.0" 15 sudo pip install "pyopenssl>=0.14" 16 sudo pip install autobahntestsuite 17 wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2 18 cd / 19 sudo tar xf /tmp/openssl.tar.bz2 20 sudo ldconfig 21 sudo update-ca-certificates 22 fi 23 24 if [ "$LWS_METHOD" == "mbedtls" -o "$LWS_METHOD" == "ss+mbedtls" ]; 25 then 26 sudo apt-get install -y -qq realpath libjemalloc1 libev4 libuv-dev valgrind 27 wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2 28 cd / 29 sudo tar xf /tmp/openssl.tar.bz2 30 sudo ldconfig 31 sudo update-ca-certificates 32 fi 33 34 if [ "$LWS_METHOD" == "smp" ]; 35 then 36 sudo apt-get install -y -qq realpath libjemalloc1 libev4 37 wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2 38 cd / 39 sudo tar xf /tmp/openssl.tar.bz2 40 sudo ldconfig 41 sudo update-ca-certificates 42 fi 43 44 if [ "$LWS_METHOD" == "libev" ]; 45 then 46 sudo apt-get install -y -qq libev-dev; 47 fi 48 49 if [ "$LWS_METHOD" == "libuv" -o "$LWS_METHOD" == "lwsws" -o "$LWS_METHOD" == "lwsws2" ]; 50 then 51 sudo apt-get install -y -qq libuv-dev; 52#libuv1 libuv1-dev; 53 fi 54 55fi 56 57if [ "$TRAVIS_OS_NAME" == "osx" ]; 58then 59 if [ "$LWS_METHOD" == "lwsws" -o "$LWS_METHOD" == "lwsws2" ]; 60 then 61 brew update; 62 brew install dbus; 63 fi 64 65 if [ "$LWS_METHOD" == "libev" ]; 66 then 67 brew update; 68 brew install libev; 69 fi 70 71 if [ "$LWS_METHOD" == "libuv" -o "$LWS_METHOD" == "lwsws" -o "$LWS_METHOD" == "lwsws2" ]; 72 then 73 brew update; 74 brew install libuv; 75 fi 76 77fi 78 79 80