-language: c
-os: linux
+language: node_js
+node_js:
+ - "10"
services: docker
env:
- LIBWEBSOCKETS_VERSION=3.1.0
- 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