2019-01-29 06:55:01 +00:00
|
|
|
language: c
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- 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
|
2017-10-09 06:13:56 +00:00
|
|
|
sudo: false
|
2019-10-08 20:16:49 +00:00
|
|
|
before_install:
|
2019-10-08 21:18:35 +00:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo add-apt-repository -y ppa:longsleep/golang-backports; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install golang-1.13-go; fi
|
2019-10-08 20:36:43 +00:00
|
|
|
install:
|
2019-10-08 21:18:35 +00:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then export PATH=/usr/lib/go-1.13/bin:$PATH; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then export GOPATH=/usr/lib/go-1.13:$GOPATH; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then export GOROOT=/usr/lib/go-1.13; fi
|
2017-10-09 06:13:56 +00:00
|
|
|
before_script:
|
2019-01-29 06:55:01 +00:00
|
|
|
- git clone https://boringssl.googlesource.com/boringssl
|
|
|
|
- cd boringssl
|
|
|
|
# This is so that both GQUIC and IETF branches build. Just picking
|
|
|
|
# a known good revision:
|
2020-10-05 14:41:36 +00:00
|
|
|
- git checkout b117a3a0b7bd11fe6ebd503ec6b45d6b910b41a1
|
2019-01-29 06:55:01 +00:00
|
|
|
- cmake .
|
|
|
|
- make
|
|
|
|
- cd -
|
2019-09-11 15:27:58 +00:00
|
|
|
- git submodule init
|
|
|
|
- git submodule update
|
2019-02-01 07:12:06 +00:00
|
|
|
- cmake -DBORINGSSL_DIR=$PWD/boringssl .
|
2017-10-09 12:26:18 +00:00
|
|
|
script:
|
2019-01-29 06:55:01 +00:00
|
|
|
# Now build lsquic-client
|
|
|
|
- make
|
|
|
|
- make test
|