.travis.yml revision 7542f0f5
112693a01SDmitri Tikhonovlanguage: c
212693a01SDmitri Tikhonovmatrix:
312693a01SDmitri Tikhonov    include:
412693a01SDmitri Tikhonov        - name: Linux (gcc)
512693a01SDmitri Tikhonov          os: linux
612693a01SDmitri Tikhonov          compiler: gcc
712693a01SDmitri Tikhonov          addons:
812693a01SDmitri Tikhonov            apt:
912693a01SDmitri Tikhonov                packages:
1012693a01SDmitri Tikhonov                - libevent-dev
1112693a01SDmitri Tikhonov        - name: Linux (clang)
1212693a01SDmitri Tikhonov          os: linux
1312693a01SDmitri Tikhonov          compiler: clang
1412693a01SDmitri Tikhonov          addons:
1512693a01SDmitri Tikhonov            apt:
1612693a01SDmitri Tikhonov                packages:
1712693a01SDmitri Tikhonov                - libevent-dev
1812693a01SDmitri Tikhonov        - name: macOS
1912693a01SDmitri Tikhonov          os: osx
2042af697eSAlexis La Gouttesudo: false
21dc9e9148SLiteSpeed Techbefore_install:
227542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then sudo add-apt-repository -y ppa:longsleep/golang-backports; fi
237542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; fi
247542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install golang-1.13-go; fi
253c5361aeSLiteSpeed Techinstall:
267542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then export PATH=/usr/lib/go-1.13/bin:$PATH; fi
277542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then export GOPATH=/usr/lib/go-1.13:$GOPATH; fi
287542f0f5SLiteSpeed Tech    - if [ $TRAVIS_OS_NAME = linux ]; then export GOROOT=/usr/lib/go-1.13; fi
2942af697eSAlexis La Gouttebefore_script:
3012693a01SDmitri Tikhonov    - git clone https://boringssl.googlesource.com/boringssl
3112693a01SDmitri Tikhonov    - cd boringssl
3212693a01SDmitri Tikhonov    # This is so that both GQUIC and IETF branches build.  Just picking
3312693a01SDmitri Tikhonov    # a known good revision:
344947ba95SDmitri Tikhonov    - git checkout 49de1fc2910524c888866c7e2b0db1ba8af2a530
3512693a01SDmitri Tikhonov    - cmake .
3612693a01SDmitri Tikhonov    - make
3712693a01SDmitri Tikhonov    - cd -
385392f7a3SLiteSpeed Tech    - git submodule init
395392f7a3SLiteSpeed Tech    - git submodule update
40b1af35d6SDmitri Tikhonov    - cmake -DBORINGSSL_DIR=$PWD/boringssl .
4132786108SAlexis La Gouttescript:
4212693a01SDmitri Tikhonov    # Now build lsquic-client
4312693a01SDmitri Tikhonov    - make
4412693a01SDmitri Tikhonov    - make test
45