Makefile: include linux-blkzoned.c for Android, if set
[fio.git] / .travis.yml
CommitLineData
d79b085f 1language: c
18e5cee6 2dist: bionic
6afa04b7
SW
3os:
4 - linux
d79b085f
JA
5compiler:
6 - clang
7 - gcc
602d85d4
VF
8arch:
9 - amd64
10 - arm64
569dccc7 11env:
be90946e
SW
12 matrix:
13 - BUILD_ARCH="x86"
14 - BUILD_ARCH="x86_64"
569dccc7
SW
15 global:
16 - MAKEFLAGS="-j 2"
fa3c391d
SW
17matrix:
18 include:
7891b2a4 19 # Default xcode image
fa3c391d
SW
20 - os: osx
21 compiler: clang # Workaround travis setting CC=["clang", "gcc"]
be90946e 22 env: BUILD_ARCH="x86_64"
602d85d4 23 arch: amd64
7891b2a4 24 # Latest xcode image (needs periodic updating)
8a7e178e
JA
25 - os: osx
26 compiler: clang
524537cb 27 osx_image: xcode11.2
8a7e178e 28 env: BUILD_ARCH="x86_64"
602d85d4 29 arch: amd64
fa3c391d
SW
30 exclude:
31 - os: osx
32 compiler: gcc
be90946e
SW
33 - os: linux
34 compiler: clang
602d85d4 35 arch: amd64
be90946e 36 env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
602d85d4
VF
37 - os: linux
38 env: BUILD_ARCH="x86"
39 arch: arm64
40
546f51ce 41before_install:
be90946e
SW
42 - EXTRA_CFLAGS="-Werror"
43 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
18e5cee6 44 pkgs=(libaio-dev libcunit1 libcunit1-dev libgoogle-perftools4 libibverbs-dev libiscsi-dev libnuma-dev librbd-dev librdmacm-dev libz-dev);
be90946e
SW
45 if [[ "$BUILD_ARCH" == "x86" ]]; then
46 pkgs=("${pkgs[@]/%/:i386}");
fb874771 47 pkgs+=(gcc-multilib python3-scipy);
be90946e
SW
48 EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
49 else
fb874771 50 pkgs+=(glusterfs-common python3-scipy);
be90946e
SW
51 fi;
52 sudo apt-get -qq update;
53 sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}";
79e55936 54 fi;
524537cb
VF
55 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
56 brew update;
57 brew install cunit;
fb874771 58 pip3 install scipy;
79e55936 59 fi;
a397a400 60script:
be90946e
SW
61 - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make
62 - make test
602d85d4
VF
63 - if [[ "$TRAVIS_CPU_ARCH" == "arm64" ]]; then
64 sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug -p 1010:"--skip 15 16 17 18 19 20";
65 else
66 sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug;
67 fi;