65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
env:
|
|
matrix:
|
|
- CI_BUILD=cmake
|
|
- CI_BUILD=autotools
|
|
language: cpp
|
|
compiler:
|
|
- clang
|
|
- gcc
|
|
sudo: false
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- george-edison55-precise-backports
|
|
packages:
|
|
- g++-4.9
|
|
- libstdc++-4.9-dev
|
|
- autoconf
|
|
- automake
|
|
- autotools-dev
|
|
- libtool
|
|
- pkg-config
|
|
- zlib1g-dev
|
|
- libcunit1-dev
|
|
- libssl-dev
|
|
- libxml2-dev
|
|
- libev-dev
|
|
- libevent-dev
|
|
- libjansson-dev
|
|
- libjemalloc-dev
|
|
- cmake
|
|
- cmake-data
|
|
before_install:
|
|
- $CC --version
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
|
|
- $CC --version
|
|
- go version
|
|
- cmake --version
|
|
before_script:
|
|
# First build spdylay, since integration tests require it.
|
|
# spdylay is going to be built under third-party/spdylay
|
|
- cd third-party
|
|
- git clone https://github.com/tatsuhiro-t/spdylay.git
|
|
- cd spdylay
|
|
- autoreconf -i
|
|
- ./configure --disable-src --disable-examples
|
|
- make check
|
|
- export SPDYLAY_HOME=$PWD
|
|
- cd ../..
|
|
# Now build nghttp2
|
|
- if [ "$CI_BUILD" = "autotools" ]; then autoreconf -i; fi
|
|
- git submodule update --init
|
|
- if [ "$CI_BUILD" = "autotools" ]; then ./configure --enable-werror --with-mruby --with-neverbleed LIBSPDYLAY_CFLAGS="-I$SPDYLAY_HOME/lib/includes" LIBSPDYLAY_LIBS="-L$SPDYLAY_HOME/lib/.libs -lspdylay"; fi
|
|
- if [ "$CI_BUILD" = "cmake" ]; then cmake -DENABLE_WERROR=1 -DWITH_MRUBY=1 -DWITH_NEVERBLEED=1 -DSPDYLAY_INCLUDE_DIR="$SPDYLAY_HOME/lib/includes" -DSPDYLAY_LIBRARY="$SPDYLAY_HOME/lib/.libs/libspdylay.so"; fi
|
|
script:
|
|
- make
|
|
- make check
|
|
- cd integration-tests
|
|
# As of April, 23, 2016, golang http2 build fails, probably because
|
|
# the default go version is too old.
|
|
|
|
# - export GOPATH="$PWD/integration-tests/golang"
|
|
# - make itprep
|
|
# - make it
|