mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Add MacOS to Travis CI; simplify .travis.yml
This commit is contained in:
parent
6259599e6e
commit
12693a011b
2 changed files with 41 additions and 44 deletions
53
.travis.yml
53
.travis.yml
|
@ -1,40 +1,35 @@
|
|||
language: cpp
|
||||
compiler:
|
||||
- clang
|
||||
- gcc
|
||||
sudo: false
|
||||
language: c
|
||||
matrix:
|
||||
include:
|
||||
- name: Linux (gcc)
|
||||
os: linux
|
||||
compiler: gcc
|
||||
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
|
||||
- name: Linux (clang)
|
||||
os: linux
|
||||
compiler: clang
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libevent-dev
|
||||
- name: macOS
|
||||
os: osx
|
||||
sudo: false
|
||||
before_script:
|
||||
- git clone https://boringssl.googlesource.com/boringssl
|
||||
- cd boringssl
|
||||
- git checkout chromium-stable
|
||||
# This is so that both GQUIC and IETF branches build. Just picking
|
||||
# a known good revision:
|
||||
- git checkout 32e59d2d3264e4e104b355ef73663b8b79ac4093
|
||||
- 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 .
|
||||
- make
|
||||
- ln -s ssl/libssl.a
|
||||
- ln -s crypto/libcrypto.a
|
||||
- cd -
|
||||
- cmake -DBORINGSSL_INCLUDE=$PWD/boringssl/include -DBORINGSSL_LIB=$PWD/boringssl .
|
||||
script:
|
||||
# Now build lsquic-client
|
||||
- make
|
||||
|
|
|
@ -17,6 +17,7 @@ ENDIF()
|
|||
|
||||
ENDIF()
|
||||
|
||||
IF (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
# If using older glibc, need to link with -lrt. See clock_getres(2).
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${PROJECT_SOURCE_DIR}/print-glibc-version.sh ${CMAKE_C_COMPILER}
|
||||
|
@ -24,6 +25,7 @@ EXECUTE_PROCESS(
|
|||
IF(NOT GLIBC_VERSION EQUAL "" AND GLIBC_VERSION VERSION_LESS 2.17)
|
||||
SET(LIBS ${LIBS} rt)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
|
||||
SET(CMAKE_BUILD_TYPE Debug)
|
||||
|
|
Loading…
Reference in a new issue