1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/scripts/travis_install.sh
Andy Green bce8cca042 refactor: also migrate tls to the ops struct and private.h pattern
Several new ops are planned for tls... so better to bite the bullet and
clean it out to the same level as roles + event-libs first.

Also adds a new travis target "mbedtls" and all the tests except
autobahn against mbedtls build.
2018-05-02 12:10:36 +08:00

73 lines
1.6 KiB
Bash
Executable file

#!/bin/bash
if [ "$COVERITY_SCAN_BRANCH" == 1 ]; then exit; fi
if [ "$TRAVIS_OS_NAME" == "linux" ];
then
sudo apt-get update -qq
if [ "$LWS_METHOD" == "lwsws" ];
then
sudo apt-get install -y -qq realpath libjemalloc1 libev4 libuv-dev
sudo apt-get remove python-six
sudo pip install six>=1.9
sudo pip install Twisted==16.0.0
sudo pip install pyopenssl>=0.14
sudo pip install autobahntestsuite
wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2
cd /
sudo tar xf /tmp/openssl.tar.bz2
sudo ldconfig
sudo update-ca-certificates
fi
if [ "$LWS_METHOD" == "mbedtls" ];
then
sudo apt-get install -y -qq realpath libjemalloc1 libev4 libuv-dev
wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2
cd /
sudo tar xf /tmp/openssl.tar.bz2
sudo ldconfig
sudo update-ca-certificates
fi
if [ "$LWS_METHOD" == "smp" ];
then
sudo apt-get install -y -qq realpath libjemalloc1 libev4
wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2
cd /
sudo tar xf /tmp/openssl.tar.bz2
sudo ldconfig
sudo update-ca-certificates
fi
if [ "$LWS_METHOD" == "libev" ];
then
sudo apt-get install -y -qq libev-dev;
fi
if [ "$LWS_METHOD" == "libuv" -o "$LWS_METHOD" == "lwsws" ];
then
sudo apt-get install -y -qq libuv-dev;
#libuv1 libuv1-dev;
fi
fi
if [ "$TRAVIS_OS_NAME" == "osx" ];
then
if [ "$LWS_METHOD" == "libev" ];
then
brew update;
brew install libev;
fi
if [ "$LWS_METHOD" == "libuv" -o "$LWS_METHOD" == "lwsws" ];
then
brew update;
brew install libuv;
fi
fi