mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-09 20:34:22 +01:00
Add .travis.yml
This commit is contained in:
17
.travis.yml
Normal file
17
.travis.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
language: c
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
sudo: required
|
||||
dist: trusty
|
||||
install:
|
||||
- echo $TRAVIS_OS_NAME
|
||||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -q; sudo apt-get install -y cmake libjson-c-dev libssl-dev; fi
|
||||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then pushd /tmp; curl -sLo- https://github.com/warmcat/libwebsockets/archive/v2.0.2.tar.gz | tar xz; cd libwebsockets-2.0.2; cmake .; make && sudo make install; popd; fi
|
||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew unlink cmake json-c; brew install cmake openssl json-c libwebsockets; fi
|
||||
script:
|
||||
- echo $TRAVIS_OS_NAME
|
||||
- cmake --version
|
||||
- mkdir build && cd build
|
||||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cmake .. && make; fi
|
||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .. && make; fi
|
||||
@@ -1,4 +1,6 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
project(ttyd)
|
||||
|
||||
set(SOURCE_FILES server.c http.c protocol.c)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# ttyd - terminal emulator for the web
|
||||
# ttyd - terminal emulator for the web [](https://travis-ci.org/tsl0922/ttyd)
|
||||
|
||||
ttyd is a simple command line tool for sharing terminal over the web, inspired by [GoTTY](https://github.com/yudai/gotty).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user