forked from tsl0922/ttyd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 877 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: c
os:
- linux
- osx
env:
- 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:
only:
- master
addons:
apt:
packages:
- cmake
- libjson-c-dev
- libssl-dev
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:
- mkdir build && cd build
- cmake $CMAKE_OPTIONS ..
- make && sudo make install
- ttyd -v