Add .travis.yml

This commit is contained in:
Shuanglei Tao
2016-09-14 08:53:49 +08:00
parent 2d53cfe03f
commit 5a953a9680
3 changed files with 21 additions and 2 deletions

17
.travis.yml Normal file
View 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

View File

@@ -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)

View File

@@ -1,4 +1,4 @@
# ttyd - terminal emulator for the web
# ttyd - terminal emulator for the web [![Build Status](https://travis-ci.org/tsl0922/ttyd.svg?branch=master)](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).