zbd: Fix zone report handling
[fio.git] / .travis.yml
CommitLineData
d79b085f 1language: c
6afa04b7
SW
2os:
3 - linux
d79b085f
JA
4compiler:
5 - clang
6 - gcc
569dccc7 7env:
be90946e
SW
8 matrix:
9 - BUILD_ARCH="x86"
10 - BUILD_ARCH="x86_64"
569dccc7
SW
11 global:
12 - MAKEFLAGS="-j 2"
fa3c391d
SW
13matrix:
14 include:
15 - os: osx
16 compiler: clang # Workaround travis setting CC=["clang", "gcc"]
be90946e 17 env: BUILD_ARCH="x86_64"
fa3c391d
SW
18 # Build using the 10.12 SDK but target and run on OSX 10.11
19# - os: osx
20# compiler: clang
21# osx_image: xcode8
22# env: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk MACOSX_DEPLOYMENT_TARGET=10.11
1a4e5190 23 # Build on the latest OSX version (will eventually become obsolete)
fa3c391d
SW
24 - os: osx
25 compiler: clang
be90946e
SW
26 osx_image: xcode8.3
27 env: BUILD_ARCH="x86_64"
8a7e178e
JA
28 - os: osx
29 compiler: clang
30 osx_image: xcode9.4
31 env: BUILD_ARCH="x86_64"
fa3c391d
SW
32 exclude:
33 - os: osx
34 compiler: gcc
be90946e
SW
35 exclude:
36 - os: linux
37 compiler: clang
38 env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
546f51ce 39before_install:
be90946e
SW
40 - EXTRA_CFLAGS="-Werror"
41 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
42 pkgs=(libaio-dev libnuma-dev libz-dev librbd-dev libibverbs-dev librdmacm-dev);
43 if [[ "$BUILD_ARCH" == "x86" ]]; then
44 pkgs=("${pkgs[@]/%/:i386}");
45 pkgs+=(gcc-multilib);
46 EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
47 else
48 pkgs+=(glusterfs-common);
49 fi;
50 sudo apt-get -qq update;
51 sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}";
52 fi
a397a400 53script:
be90946e
SW
54 - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make
55 - make test