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