travis: Use multi-line text
@@ -37,8 +37,16 @@ addons:
- cunit
before_install:
- $CC --version
- - if [ "$TRAVIS_OS_NAME" == "linux" ]; then CMAKE_OPTS=" -DENABLE_ASAN=1" AUTOTOOLS_OPTS=" --enable-asan"; fi
- - if [ "$TRAVIS_OS_NAME" == "linux" ]; then if [ "$CXX" = "g++" ]; then export CXX="g++-8" CC="gcc-8" EXTRA_LDFLAGS="-fuse-ld=gold"; else export CXX="clang++" CC="clang"; fi; fi
+ - |
+ if [ "$TRAVIS_OS_NAME" == "linux" ]; then
+ CMAKE_OPTS=" -DENABLE_ASAN=1"
+ AUTOTOOLS_OPTS="--enable-asan"
+ if [ "$CXX" = "g++" ]; then
+ export CXX="g++-8" CC="gcc-8" EXTRA_LDFLAGS="-fuse-ld=gold"
+ else
+ export CXX="clang++" CC="clang"
+ fi
+ fi
- $CC --version
- cmake --version
before_script:
@@ -46,11 +54,18 @@ before_script:
- ./ci/build_openssl.sh
- ./ci/build_nghttp3.sh
# configure ngtcp2
- - if [ "$CI_BUILD" == "autotools" ]; then autoreconf -i; fi
- export PKG_CONFIG_PATH=$PWD/../openssl/build/lib/pkgconfig:$PWD/../nghttp3/build/lib/pkgconfig LDFLAGS="$EXTRA_LDFLAGS -Wl,-rpath,$PWD/../openssl/build/lib"
- - if [ "$CI_BUILD" == "autotools" ]; then ./configure --enable-werror $AUTOTOOLS_OPTS; fi
- # Set CMAKE_LIBRARY_ARCHITECTURE to workaround failure to parse implicit link information from GCC 5
- - if [ "$CI_BUILD" == "cmake" ]; then cmake $CMAKE_OPTS -DCMAKE_LIBRARY_ARCHITECTURE=x86_64-linux-gnu; fi
+ - |
+ if [ "$CI_BUILD" == "autotools" ]; then
+ autoreconf -i
+ ./configure --enable-werror $AUTOTOOLS_OPTS
+ fi
+ # Set CMAKE_LIBRARY_ARCHITECTURE to workaround failure to parse
+ # implicit link information from GCC 5
+ - |
+ if [ "$CI_BUILD" == "cmake" ]; then
+ cmake $CMAKE_OPTS -DCMAKE_LIBRARY_ARCHITECTURE=x86_64-linux-gnu
+ fi
script:
# Now build ngtcp2 examples and test
- make
