Blame .travis.yml

Packit 8930e1
language: c
Packit 8930e1
dist: bionic
Packit 8930e1
os:
Packit 8930e1
  - linux
Packit 8930e1
compiler:
Packit 8930e1
  - clang
Packit 8930e1
  - gcc
Packit 8930e1
env:
Packit 8930e1
  matrix:
Packit 8930e1
    - BUILD_ARCH="x86"
Packit 8930e1
    - BUILD_ARCH="x86_64"
Packit 8930e1
  global:
Packit 8930e1
    - MAKEFLAGS="-j 2"
Packit 8930e1
matrix:
Packit 8930e1
  include:
Packit 8930e1
    # Default xcode image
Packit 8930e1
    - os: osx
Packit 8930e1
      compiler: clang # Workaround travis setting CC=["clang", "gcc"]
Packit 8930e1
      env: BUILD_ARCH="x86_64"
Packit 8930e1
    # Latest xcode image (needs periodic updating)
Packit 8930e1
    - os: osx
Packit 8930e1
      compiler: clang
Packit 8930e1
      osx_image: xcode11.2
Packit 8930e1
      env: BUILD_ARCH="x86_64"
Packit 8930e1
  exclude:
Packit 8930e1
    - os: osx
Packit 8930e1
      compiler: gcc
Packit 8930e1
  exclude:
Packit 8930e1
    - os: linux
Packit 8930e1
      compiler: clang
Packit 8930e1
      env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
Packit 8930e1
before_install:
Packit 8930e1
  - EXTRA_CFLAGS="-Werror"
Packit 8930e1
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
Packit 8930e1
        pkgs=(libaio-dev libcunit1 libcunit1-dev libgoogle-perftools4 libibverbs-dev libiscsi-dev libnuma-dev librbd-dev librdmacm-dev libz-dev);
Packit 8930e1
        if [[ "$BUILD_ARCH" == "x86" ]]; then
Packit 8930e1
            pkgs=("${pkgs[@]/%/:i386}");
Packit 8930e1
            pkgs+=(gcc-multilib python-scipy);
Packit 8930e1
            EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32";
Packit 8930e1
        else
Packit 8930e1
            pkgs+=(glusterfs-common python-scipy);
Packit 8930e1
        fi;
Packit 8930e1
        sudo apt-get -qq update;
Packit 8930e1
        sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}";
Packit 8930e1
    fi;
Packit 8930e1
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
Packit 8930e1
        brew update;
Packit 8930e1
        brew install cunit;
Packit 8930e1
        if [[ "$TRAVIS_OSX_IMAGE" == "xcode11.2" ]]; then
Packit 8930e1
            pip3 install scipy;
Packit 8930e1
        fi;
Packit 8930e1
        pip install scipy;
Packit 8930e1
    fi;
Packit 8930e1
script:
Packit 8930e1
  - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make
Packit 8930e1
  - make test
Packit 8930e1
  - sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug