.travis: enable arm64 architecture builds
[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}");
524537cb 47 pkgs+=(gcc-multilib python-scipy);
be90946e
SW
48 EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
49 else
524537cb 50 pkgs+=(glusterfs-common python-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;
58 if [[ "$TRAVIS_OSX_IMAGE" == "xcode11.2" ]]; then
59 pip3 install scipy;
524537cb 60 fi;
6b8cc534 61 pip install scipy;
79e55936 62 fi;
a397a400 63script:
be90946e
SW
64 - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make
65 - make test
602d85d4
VF
66 - if [[ "$TRAVIS_CPU_ARCH" == "arm64" ]]; then
67 sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug -p 1010:"--skip 15 16 17 18 19 20";
68 else
69 sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug;
70 fi;