]> prime8.dev >> repos - ttyd.git/commitdiff
travis: update scripts
authorShuanglei Tao <tsl0922@gmail.com>
Tue, 4 Apr 2017 02:14:43 +0000 (10:14 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Tue, 4 Apr 2017 02:14:43 +0000 (10:14 +0800)
.travis.yml

index 6dddcbda53fdf19195cd2fcd057704445af3b132..7833d2660d856d0fffb30643ea6694487a903ae9 100644 (file)
@@ -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