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
71
.travis.yml
71
.travis.yml
|
@ -1,41 +1,36 @@
|
||||||
language: cpp
|
language: c
|
||||||
compiler:
|
matrix:
|
||||||
- clang
|
include:
|
||||||
- gcc
|
- name: Linux (gcc)
|
||||||
|
os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libevent-dev
|
||||||
|
- name: Linux (clang)
|
||||||
|
os: linux
|
||||||
|
compiler: clang
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libevent-dev
|
||||||
|
- name: macOS
|
||||||
|
os: osx
|
||||||
sudo: false
|
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:
|
before_script:
|
||||||
- git clone https://boringssl.googlesource.com/boringssl
|
- git clone https://boringssl.googlesource.com/boringssl
|
||||||
- cd boringssl
|
- cd boringssl
|
||||||
- git checkout chromium-stable
|
# This is so that both GQUIC and IETF branches build. Just picking
|
||||||
- cmake .
|
# a known good revision:
|
||||||
- make -j$(nproc)
|
- git checkout 32e59d2d3264e4e104b355ef73663b8b79ac4093
|
||||||
- BORINGSSL_SOURCE=$PWD
|
- cmake .
|
||||||
- mkdir -p $HOME/boringssl-libs
|
- make
|
||||||
- cd $HOME/boringssl-libs
|
- ln -s ssl/libssl.a
|
||||||
- ln -s $BORINGSSL_SOURCE/ssl/libssl.a
|
- ln -s crypto/libcrypto.a
|
||||||
- ln -s $BORINGSSL_SOURCE/crypto/libcrypto.a
|
- cd -
|
||||||
- cd $TRAVIS_BUILD_DIR
|
- cmake -DBORINGSSL_INCLUDE=$PWD/boringssl/include -DBORINGSSL_LIB=$PWD/boringssl .
|
||||||
- echo $BORINGSSL_SOURCE
|
|
||||||
- cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include -DBORINGSSL_LIB=$HOME/boringssl-libs .
|
|
||||||
script:
|
script:
|
||||||
# Now build lsquic-client
|
# Now build lsquic-client
|
||||||
- make
|
- make
|
||||||
- make test
|
- make test
|
||||||
|
|
|
@ -17,12 +17,14 @@ ENDIF()
|
||||||
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# If using older glibc, need to link with -lrt. See clock_getres(2).
|
IF (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
EXECUTE_PROCESS(
|
# If using older glibc, need to link with -lrt. See clock_getres(2).
|
||||||
COMMAND ${PROJECT_SOURCE_DIR}/print-glibc-version.sh ${CMAKE_C_COMPILER}
|
EXECUTE_PROCESS(
|
||||||
OUTPUT_VARIABLE GLIBC_VERSION)
|
COMMAND ${PROJECT_SOURCE_DIR}/print-glibc-version.sh ${CMAKE_C_COMPILER}
|
||||||
IF(NOT GLIBC_VERSION EQUAL "" AND GLIBC_VERSION VERSION_LESS 2.17)
|
OUTPUT_VARIABLE GLIBC_VERSION)
|
||||||
SET(LIBS ${LIBS} rt)
|
IF(NOT GLIBC_VERSION EQUAL "" AND GLIBC_VERSION VERSION_LESS 2.17)
|
||||||
|
SET(LIBS ${LIBS} rt)
|
||||||
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
|
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
|
||||||
|
|
Loading…
Reference in a new issue