From: Shuanglei Tao Date: Tue, 4 Apr 2017 02:14:43 +0000 (+0800) Subject: travis: update scripts X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=e0352f5d3f44705bf3ae07645141400b4ffcfec4;p=ttyd.git travis: update scripts --- diff --git a/.travis.yml b/.travis.yml index 6dddcbd..7833d26 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,10 @@ os: - linux - osx env: - - LIBWEBSOCKETS_VERSION=v1.7.9 - - LIBWEBSOCKETS_VERSION=v2.0.3 - - LIBWEBSOCKETS_VERSION=v2.1.1 - - LIBWEBSOCKETS_VERSION=v2.2.1 + - LIBWEBSOCKETS_VERSION=1.7.9 + - LIBWEBSOCKETS_VERSION=2.0.3 + - LIBWEBSOCKETS_VERSION=2.1.1 + - LIBWEBSOCKETS_VERSION=2.2.1 sudo: required dist: trusty branches: @@ -18,13 +18,20 @@ addons: - cmake - libjson-c-dev - libssl-dev -install: - - echo $TRAVIS_OS_NAME - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install cmake openssl json-c; export CMAKE_OPTIONS="-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl"; fi - - echo "Compiling libwebsockets-$LIBWEBSOCKETS_VERSION from source..." - - pushd /tmp; curl -sLo- https://github.com/warmcat/libwebsockets/archive/$LIBWEBSOCKETS_VERSION.tar.gz | tar xz; cd libwebsockets-*; cmake $CMAKE_OPTIONS .; make && sudo make install; popd +install: | + if [ "$TRAVIS_OS_NAME" == "osx" ]; then + brew install cmake openssl json-c + export CMAKE_OPTIONS="-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl" + fi + echo "Compiling libwebsockets-$LIBWEBSOCKETS_VERSION from source..." + pushd /tmp + curl -sLo- https://github.com/warmcat/libwebsockets/archive/v$LIBWEBSOCKETS_VERSION.tar.gz | tar xz + cd libwebsockets-$LIBWEBSOCKETS_VERSION + cmake $CMAKE_OPTIONS . + make && sudo make install + popd script: - - echo $TRAVIS_OS_NAME - - cmake --version - mkdir build && cd build - - cmake $CMAKE_OPTIONS .. && make + - cmake $CMAKE_OPTIONS .. + - make && sudo make install + - ttyd -v