mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Merge pull request #20 from dtikhonov/201804231451-travis
Add Travis-CI support
This commit is contained in:
commit
1b0179efcb
3 changed files with 45 additions and 1 deletions
41
.travis.yml
Normal file
41
.travis.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
language: cpp
|
||||
compiler:
|
||||
- clang
|
||||
- gcc
|
||||
sudo: false
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
- llvm-toolchain-precise-3.8
|
||||
- george-edison55-precise-backports
|
||||
packages:
|
||||
- g++-5
|
||||
- clang-3.8
|
||||
- libevent-dev
|
||||
- libssl-dev
|
||||
- cmake
|
||||
- cmake-data
|
||||
before_install:
|
||||
- $CC --version
|
||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; else export CXX="clang++-3.8" CC="clang-3.8"; fi
|
||||
- $CC --version
|
||||
- cmake --version
|
||||
before_script:
|
||||
- git clone https://boringssl.googlesource.com/boringssl
|
||||
- cd boringssl
|
||||
- git checkout chromium-stable
|
||||
- cmake .
|
||||
- make -j$(nproc)
|
||||
- BORINGSSL_SOURCE=$PWD
|
||||
- mkdir -p $HOME/boringssl-libs
|
||||
- cd $HOME/boringssl-libs
|
||||
- ln -s $BORINGSSL_SOURCE/ssl/libssl.a
|
||||
- ln -s $BORINGSSL_SOURCE/crypto/libcrypto.a
|
||||
- cd $TRAVIS_BUILD_DIR
|
||||
- echo $BORINGSSL_SOURCE
|
||||
- cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include -DBORINGSSL_LIB=$HOME/boringssl-libs .
|
||||
script:
|
||||
# Now build lsquic-client
|
||||
- make
|
||||
- make test
|
|
@ -41,7 +41,8 @@ IF(DEVEL_MODE EQUAL 1)
|
|||
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -O0 -g3")
|
||||
# -Werror is used to force us to fix warnings early.
|
||||
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Werror")
|
||||
IF(CMAKE_C_COMPILER MATCHES "clang")
|
||||
IF(CMAKE_C_COMPILER MATCHES "clang" AND
|
||||
NOT "$ENV{TRAVIS}" MATCHES "^true$")
|
||||
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -fsanitize=address")
|
||||
ENDIF()
|
||||
# Uncomment to enable fault injection testing via libfiu:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
[![Build Status](https://travis-ci.org/dtikhonov/lsquic-client.svg?branch=master)](https://travis-ci.org/dtikhonov/lsquic-client)
|
||||
|
||||
LiteSpeed QUIC (LSQUIC) Client Library README
|
||||
=============================================
|
||||
|
||||
|
|
Loading…
Reference in a new issue