2018-12-25 19:35:54 +01:00
|
|
|
dist: xenial
|
2019-05-28 14:03:03 +02:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
2016-03-12 23:39:43 +01:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- CI_BUILD=cmake
|
|
|
|
- CI_BUILD=autotools
|
2019-05-28 14:03:03 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
osx_image: xcode10.2
|
|
|
|
env: CI_BUILD=autotools
|
2014-05-27 08:31:22 +02:00
|
|
|
language: cpp
|
2017-10-23 15:11:19 +02:00
|
|
|
sudo: required
|
2015-04-22 16:03:29 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2018-11-02 09:26:17 +01:00
|
|
|
- g++-8
|
2015-04-22 16:03:29 +02:00
|
|
|
- autoconf
|
|
|
|
- automake
|
|
|
|
- autotools-dev
|
|
|
|
- libtool
|
|
|
|
- pkg-config
|
|
|
|
- zlib1g-dev
|
|
|
|
- libcunit1-dev
|
|
|
|
- libssl-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- libev-dev
|
|
|
|
- libevent-dev
|
|
|
|
- libjansson-dev
|
|
|
|
- libjemalloc-dev
|
2016-12-10 13:04:17 +01:00
|
|
|
- libc-ares-dev
|
2016-03-12 23:39:43 +01:00
|
|
|
- cmake
|
|
|
|
- cmake-data
|
2019-05-28 14:03:03 +02:00
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- libev
|
|
|
|
- libevent
|
|
|
|
- c-ares
|
|
|
|
- cunit
|
|
|
|
- libressl
|
2014-05-27 08:31:22 +02:00
|
|
|
before_install:
|
|
|
|
- $CC --version
|
2018-11-02 09:26:17 +01:00
|
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-8" CC="gcc-8"; fi
|
2014-05-27 08:31:22 +02:00
|
|
|
- $CC --version
|
2015-11-23 06:58:17 +01:00
|
|
|
- go version
|
2016-03-12 23:39:43 +01:00
|
|
|
- cmake --version
|
2014-05-27 08:31:22 +02:00
|
|
|
before_script:
|
2019-06-07 16:35:55 +02:00
|
|
|
- |
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address -fuse-ld=gold"
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
PKG_CONFIG_PATH="/usr/local/opt/libressl/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig"
|
|
|
|
fi
|
2015-11-23 06:58:17 +01:00
|
|
|
# Now build nghttp2
|
2015-09-05 18:23:11 +02:00
|
|
|
- git submodule update --init
|
2019-06-07 16:35:55 +02:00
|
|
|
- |
|
|
|
|
if [ "$CI_BUILD" = "autotools" ]; then
|
2019-06-10 11:58:47 +02:00
|
|
|
autoreconf -i && ./configure --with-mruby PKG_CONFIG_PATH=$PKG_CONFIG_PATH
|
2019-06-07 16:35:55 +02:00
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [ "$CI_BUILD" = "cmake" ]; then
|
|
|
|
cmake -DENABLE_WERROR=1 -DWITH_MRUBY=1 -DWITH_NEVERBLEED=1
|
|
|
|
fi
|
2014-05-27 08:31:22 +02:00
|
|
|
script:
|
2019-06-07 16:35:55 +02:00
|
|
|
- |
|
|
|
|
if [ "$CI_BUILD" = "autotools" ]; then
|
|
|
|
make distcheck DISTCHECK_CONFIGURE_FLAGS="--with-mruby --with-neverbleed --enable-werror CPPFLAGS=$CPPFLAGS LDFLAGS=\"$LDFLAGS\" PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [ "$CI_BUILD" = "cmake" ]; then
|
2019-06-10 11:58:47 +02:00
|
|
|
make && make check
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [ "$CI_BUILD" = "cmake" ]; then
|
2019-06-07 16:49:46 +02:00
|
|
|
# Integration tests for nghttpx; autotools build erases build
|
|
|
|
# for packaging test.
|
|
|
|
cd integration-tests
|
|
|
|
export GO111MODULE=on
|
|
|
|
make it
|
2019-06-07 16:35:55 +02:00
|
|
|
fi
|