.travis.yml revision 45f0b126
1language: c
2matrix:
3    include:
4        - name: Linux (gcc)
5          os: linux
6          compiler: gcc
7          addons:
8            apt:
9                packages:
10                - libevent-dev
11        - name: Linux (clang)
12          os: linux
13          compiler: clang
14          addons:
15            apt:
16                packages:
17                - libevent-dev
18        - name: macOS
19          os: osx
20sudo: false
21before_install:
22    - [ $TRAVIS_OS_NAME = linux ] && sudo add-apt-repository -y ppa:longsleep/golang-backports
23    - [ $TRAVIS_OS_NAME = linux ] && sudo apt-get update
24    - [ $TRAVIS_OS_NAME = linux ] && sudo apt-get install golang-1.13-go
25install:
26    - [ $TRAVIS_OS_NAME = linux ] && export PATH=/usr/lib/go-1.13/bin:$PATH
27    - [ $TRAVIS_OS_NAME = linux ] && export GOPATH=/usr/lib/go-1.13:$GOPATH
28    - [ $TRAVIS_OS_NAME = linux ] && export GOROOT=/usr/lib/go-1.13
29before_script:
30    - git clone https://boringssl.googlesource.com/boringssl
31    - cd boringssl
32    # This is so that both GQUIC and IETF branches build.  Just picking
33    # a known good revision:
34    - git checkout 49de1fc2910524c888866c7e2b0db1ba8af2a530
35    - cmake .
36    - make
37    - cd -
38    - git submodule init
39    - git submodule update
40    - cmake -DBORINGSSL_DIR=$PWD/boringssl .
41script:
42    # Now build lsquic-client
43    - make
44    - make test
45