]> prime8.dev >> repos - ttyd.git/commitdiff
travis: compile html frondend
authorShuanglei Tao <tsl0922@gmail.com>
Sun, 4 Aug 2019 04:39:50 +0000 (12:39 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sun, 4 Aug 2019 07:18:20 +0000 (15:18 +0800)
.travis.yml

index d690a7960d1bbe962591be5ea2956abc0d826ac3..059fb39af880a1e17bba431ff5b0c3a831d431e3 100644 (file)
@@ -1,5 +1,6 @@
-language: c
-os: linux
+language: node_js
+node_js:
+  - "10"
 services: docker
 env:
   - LIBWEBSOCKETS_VERSION=3.1.0
@@ -13,15 +14,19 @@ addons:
       - cmake
       - libjson-c-dev
       - libssl-dev
-install: |
-  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 -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON -DCMAKE_BUILD_TYPE=RELEASE .
-    make && sudo make install
-  popd
+install:
+  - yarn --cwd ./html install
+  - yarn --cwd ./html run check
+  - |
+    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 -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON -DLWS_WITHOUT_TESTAPPS=ON -DCMAKE_BUILD_TYPE=RELEASE .
+      make && sudo make install
+    popd
 script: |
+  yarn --cwd ./html run build
   mkdir build && cd build
   cmake -DCMAKE_BUILD_TYPE=RELEASE ..
   make && sudo make install