b34264e34fcd417c4e2cc5e0c99950e527a3da38
[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     # Default xcode image
16     - os: osx
17       compiler: clang # Workaround travis setting CC=["clang", "gcc"]
18       env: BUILD_ARCH="x86_64"
19     # Latest xcode image (needs periodic updating)
20     - os: osx
21       compiler: clang
22       osx_image: xcode11.2
23       env: BUILD_ARCH="x86_64"
24   exclude:
25     - os: osx
26       compiler: gcc
27   exclude:
28     - os: linux
29       compiler: clang
30       env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
31 before_install:
32   - EXTRA_CFLAGS="-Werror"
33   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
34         pkgs=(libaio-dev libnuma-dev libz-dev librbd-dev libibverbs-dev librdmacm-dev libcunit1 libcunit1-dev);
35         if [[ "$BUILD_ARCH" == "x86" ]]; then
36             pkgs=("${pkgs[@]/%/:i386}");
37             pkgs+=(gcc-multilib python-scipy);
38             EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
39         else
40             pkgs+=(glusterfs-common python-scipy);
41         fi;
42         sudo apt-get -qq update;
43         sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}";
44     fi;
45   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
46         brew update;
47         brew install cunit;
48         if [[ "$TRAVIS_OSX_IMAGE" == "xcode11.2" ]]; then
49             pip3 install scipy;
50         fi;
51         pip install scipy;
52     fi;
53 script:
54   - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make
55   - make test
56   - sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug