Merge branch 'cygwin-build-error' of https://github.com/vincentkfu/fio
[fio.git] / .travis.yml
1 language: c
2 os:
3   - linux
4 compiler:
5   - clang
6   - gcc
7 env:
8   matrix:
9     - BUILD_ARCH="x86"
10     - BUILD_ARCH="x86_64"
11   global:
12     - MAKEFLAGS="-j 2"
13 matrix:
14   include:
15     - os: osx
16       compiler: clang # Workaround travis setting CC=["clang", "gcc"]
17       env: BUILD_ARCH="x86_64"
18     - os: osx
19       compiler: clang
20       osx_image: xcode9.4
21       env: BUILD_ARCH="x86_64"
22     - os: osx
23       compiler: clang
24       osx_image: xcode11.2
25       env: BUILD_ARCH="x86_64"
26   exclude:
27     - os: osx
28       compiler: gcc
29   exclude:
30     - os: linux
31       compiler: clang
32       env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
33 before_install:
34   - EXTRA_CFLAGS="-Werror"
35   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
36         pkgs=(libaio-dev libnuma-dev libz-dev librbd-dev libibverbs-dev librdmacm-dev libcunit1 libcunit1-dev);
37         if [[ "$BUILD_ARCH" == "x86" ]]; then
38             pkgs=("${pkgs[@]/%/:i386}");
39             pkgs+=(gcc-multilib python-scipy);
40             EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
41         else
42             pkgs+=(glusterfs-common python-scipy);
43         fi;
44         sudo apt-get -qq update;
45         sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}";
46     fi;
47   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
48         brew update;
49         brew install cunit;
50         if [[ "$TRAVIS_OSX_IMAGE" == "xcode11.2" ]]; then
51             pip3 install scipy;
52         fi;
53         pip install scipy;
54     fi;
55 script:
56   - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make
57   - make test
58   - sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug