代码拉取完成,页面将自动刷新
dist: xenial
language: cpp
os:
- osx
- linux
osx_image: xcode11
compiler:
- clang
- gcc
env:
- CI_BUILD=cmake
- CI_BUILD=autotools
matrix:
exclude:
# Exclude gcc build (Need some work) with osx
- os: osx
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- autoconf
- automake
- autotools-dev
- libtool
- pkg-config
- libcunit1-dev
- cmake
- cmake-data
homebrew:
packages:
- cunit
before_install:
- $CC --version
- |
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:
# configure nghttp3
- |
if [ "$CI_BUILD" == "autotools" ]; then
autoreconf -i && ./configure --enable-werror $AUTOTOOLS_OPTS
fi
- |
if [ "$CI_BUILD" == "cmake" ]; then
cmake $CMAKE_OPTS .
fi
script:
# Now build nghttp3 examples and test
- make
- make check
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。