.travis.yml revision 26e8f082
112693a01SDmitri Tikhonovlanguage: c
27ff5beb4SE.Lif: branch = master
312693a01SDmitri Tikhonovmatrix:
412693a01SDmitri Tikhonov    include:
512693a01SDmitri Tikhonov        - name: Linux (gcc)
612693a01SDmitri Tikhonov          os: linux
712693a01SDmitri Tikhonov          compiler: gcc
812693a01SDmitri Tikhonov          addons:
912693a01SDmitri Tikhonov            apt:
1012693a01SDmitri Tikhonov                packages:
1112693a01SDmitri Tikhonov                - libevent-dev
1212693a01SDmitri Tikhonov        - name: Linux (clang)
1312693a01SDmitri Tikhonov          os: linux
1412693a01SDmitri Tikhonov          compiler: clang
1512693a01SDmitri Tikhonov          addons:
1612693a01SDmitri Tikhonov            apt:
1712693a01SDmitri Tikhonov                packages:
1812693a01SDmitri Tikhonov                - libevent-dev
1912693a01SDmitri Tikhonov        - name: macOS
2012693a01SDmitri Tikhonov          os: osx
2142af697eSAlexis La Gouttesudo: false
22dc9e9148SLiteSpeed Techbefore_install:
237542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then sudo add-apt-repository -y ppa:longsleep/golang-backports; fi
247542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; fi
257542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install golang-1.13-go; fi
263c5361aeSLiteSpeed Techinstall:
277542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then export PATH=/usr/lib/go-1.13/bin:$PATH; fi
287542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then export GOPATH=/usr/lib/go-1.13:$GOPATH; fi
297542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then export GOROOT=/usr/lib/go-1.13; fi
3042af697eSAlexis La Gouttebefore_script:
3112693a01SDmitri Tikhonov    - git clone https://boringssl.googlesource.com/boringssl
3212693a01SDmitri Tikhonov    - cd boringssl
3312693a01SDmitri Tikhonov    # This is so that both GQUIC and IETF branches build.  Just picking
3412693a01SDmitri Tikhonov    # a known good revision:
3526e8f082SDmitri Tikhonov    - git checkout a2278d4d2cabe73f6663e3299ea7808edfa306b9
3612693a01SDmitri Tikhonov    - cmake .
3712693a01SDmitri Tikhonov    - make
3812693a01SDmitri Tikhonov    - cd -
395392f7a3SLiteSpeed Tech    - git submodule init
405392f7a3SLiteSpeed Tech    - git submodule update
41b1af35d6SDmitri Tikhonov    - cmake -DBORINGSSL_DIR=$PWD/boringssl .
4232786108SAlexis La Gouttescript:
4312693a01SDmitri Tikhonov    # Now build lsquic-client
4412693a01SDmitri Tikhonov    - make
4512693a01SDmitri Tikhonov    - make test
46