Add trusty to the test matrix
language: cpp
+cache: ccache
+
compiler:
- gcc
@@ -8,7 +10,12 @@ addons:
- 127.0.0.1.xip.io
- alternate.127.0.0.1.xip.io
-before_install:
+matrix:
+ include:
+ - os: linux
+ sudo: required
+ dist: precise
+ before_install: &bi
# upgrade g++ and libstdc++ to build nghttp2
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-add-repository --yes ppa:smspillaz/cmake-2.8.12
@@ -18,8 +25,7 @@ before_install:
- $CXX --version
# for speed, pre-install deps installed in `before_script` section as ubuntu packages
- sudo apt-get install -qq cpanminus libipc-signal-perl liblist-moreutils-perl libwww-perl libio-socket-ssl-perl zlib1g-dev
-
-before_script:
+ before_script: &bs
# install libuv >= 1.0.0 (optionally required for building / testing libh2o)
- curl -L https://github.com/libuv/libuv/archive/v1.0.0.tar.gz | tar xzf -
- (cd libuv-1.0.0 && ./autogen.sh && ./configure --prefix=/usr && make && sudo make install)
@@ -41,9 +47,14 @@ before_script:
- (cd nghttp2-1.4.0 && ./configure --prefix=/usr --disable-threads --enable-app && make && sudo make install)
- curl -L https://curl.haxx.se/download/curl-7.50.0.tar.gz | tar xzf -
- (cd curl-7.50.0 && ./configure --prefix=/usr --with-nghttp2 --disable-shared && make && sudo make install)
-
-script:
+ script: &s
- cmake -DWITH_MRUBY=ON .
- make all
- make check
- sudo make check-as-root
+ - os: linux
+ sudo: required
+ dist: trusty
+ before_install: *bi
+ before_script: *bs
+ script: *s
