From a6b4d282dab4e8a63e7ea50faa054047977523d2 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sun, 4 Aug 2019 12:39:50 +0800 Subject: [PATCH] travis: compile html frondend --- .travis.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index d690a79..059fb39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 -- 2.43.4