.travis.yml revision 7542f0f5
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    - if [ $TRAVIS_OS_NAME = linux ]; then sudo add-apt-repository -y ppa:longsleep/golang-backports; fi
23    - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; fi
24    - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install golang-1.13-go; fi
25install:
26    - if [ $TRAVIS_OS_NAME = linux ]; then export PATH=/usr/lib/go-1.13/bin:$PATH; fi
27    - if [ $TRAVIS_OS_NAME = linux ]; then export GOPATH=/usr/lib/go-1.13:$GOPATH; fi
28    - if [ $TRAVIS_OS_NAME = linux ]; then export GOROOT=/usr/lib/go-1.13; fi
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