docs: update for new data placement options
[fio.git] / .travis.yml
1 language: c
2 dist: bionic
3 os:
4   - linux
5 compiler:
6   - clang
7   - gcc
8 arch:
9   - amd64
10   - arm64
11 env:
12   matrix:
13     - BUILD_ARCH="x86"
14     - BUILD_ARCH="x86_64"
15   global:
16     - MAKEFLAGS="-j 2"
17 matrix:
18   include:
19     # Default xcode image
20     - os: osx
21       compiler: clang # Workaround travis setting CC=["clang", "gcc"]
22       env: BUILD_ARCH="x86_64"
23       arch: amd64
24     # Latest xcode image (needs periodic updating)
25     - os: osx
26       compiler: clang
27       osx_image: xcode11.2
28       env: BUILD_ARCH="x86_64"
29       arch: amd64
30   exclude:
31     - os: osx
32       compiler: gcc
33     - os: linux
34       compiler: clang
35       arch: amd64
36       env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
37     - os: linux
38       env: BUILD_ARCH="x86"
39       arch: arm64
40
41 before_install:
42   - EXTRA_CFLAGS="-Werror"
43   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
44         pkgs=(libaio-dev libcunit1 libcunit1-dev libgoogle-perftools4 libibverbs-dev libiscsi-dev libnuma-dev librbd-dev librdmacm-dev libz-dev);
45         if [[ "$BUILD_ARCH" == "x86" ]]; then
46             pkgs=("${pkgs[@]/%/:i386}");
47             pkgs+=(gcc-multilib python3-scipy);
48             EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
49         else
50             pkgs+=(glusterfs-common python3-scipy);
51         fi;
52         sudo apt-get -qq update;
53         sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}";
54     fi;
55   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
56         brew update;
57         brew install cunit;
58         pip3 install scipy;
59     fi;
60 script:
61   - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make
62   - make test
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;