language: c
-compiler:
- - gcc
- - clang
-env:
- - BUILDDIR=. TOOL="./configure"
- - BUILDDIR=. TOOL="./configure --zlib-compat"
- - BUILDDIR=../build TOOL="../zlib-ng/configure --zlib-compat"
- - BUILDDIR=. TOOL="./configure --zlib-compat --without-optimizations --without-new-strategies"
- - BUILDDIR=. TOOL="cmake ."
- - BUILDDIR=../build TOOL="cmake ../zlib-ng"
-script: mkdir -p $BUILDDIR && cd $BUILDDIR &&
- $TOOL && make && make test
+cache: ccache
+dist: trusty
+osx_image: xcode8.2
+
+matrix:
+ include:
+ - os: linux
+ compiler: gcc
+ env: BUILDDIR=. TOOL="./configure"
+ - os: linux
+ compiler: gcc
+ env: BUILDDIR=../build TOOL="../zlib-ng/configure --zlib-compat"
+ - os: linux
+ compiler: gcc
+ env: BUILDDIR=. TOOL="./configure --zlib-compat --without-optimizations --without-new-strategies"
+ - os: linux
+ compiler: gcc
+ env: BUILDDIR=. TOOL="cmake ."
+ - os: linux
+ compiler: gcc
+ env: BUILDDIR=../build TOOL="cmake ../zlib-ng"
+
+ - os: linux
+ compiler: clang
+ env: BUILDDIR=. TOOL="./configure --zlib-compat"
+ - os: linux
+ compiler: clang
+ env: BUILDDIR=../build TOOL="cmake ../zlib-ng"
+
+ - os: osx
+ compiler: gcc
+ env: BUILDDIR=. TOOL="./configure --zlib-compat"
+ - os: osx
+ compiler: gcc
+ env: BUILDDIR=../build TOOL="../zlib-ng/configure --zlib-compat"
+ - os: osx
+ compiler: gcc
+ env: BUILDDIR=. TOOL="cmake ."
+
+ - os: osx
+ compiler: clang
+ env: BUILDDIR=. TOOL="./configure --zlib-compat"
+ - os: osx
+ compiler: clang
+ env: BUILDDIR=../build TOOL="cmake ../zlib-ng"
+
+script: mkdir -p $BUILDDIR && cd $BUILDDIR && $TOOL && make -j2 && make test