Commit | Line | Data |
---|---|---|
d79b085f | 1 | language: c |
6afa04b7 SW |
2 | os: |
3 | - linux | |
d79b085f JA |
4 | compiler: |
5 | - clang | |
6 | - gcc | |
569dccc7 | 7 | env: |
be90946e SW |
8 | matrix: |
9 | - BUILD_ARCH="x86" | |
10 | - BUILD_ARCH="x86_64" | |
569dccc7 SW |
11 | global: |
12 | - MAKEFLAGS="-j 2" | |
fa3c391d SW |
13 | matrix: |
14 | include: | |
15 | - os: osx | |
16 | compiler: clang # Workaround travis setting CC=["clang", "gcc"] | |
be90946e | 17 | env: BUILD_ARCH="x86_64" |
fa3c391d SW |
18 | - os: osx |
19 | compiler: clang | |
524537cb | 20 | osx_image: xcode9.4 |
be90946e | 21 | env: BUILD_ARCH="x86_64" |
8a7e178e JA |
22 | - os: osx |
23 | compiler: clang | |
524537cb | 24 | osx_image: xcode11.2 |
8a7e178e | 25 | env: BUILD_ARCH="x86_64" |
fa3c391d SW |
26 | exclude: |
27 | - os: osx | |
28 | compiler: gcc | |
be90946e SW |
29 | exclude: |
30 | - os: linux | |
31 | compiler: clang | |
32 | env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter | |
546f51ce | 33 | before_install: |
be90946e SW |
34 | - EXTRA_CFLAGS="-Werror" |
35 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | |
524537cb | 36 | pkgs=(libaio-dev libnuma-dev libz-dev librbd-dev libibverbs-dev librdmacm-dev libcunit1 libcunit1-dev); |
be90946e SW |
37 | if [[ "$BUILD_ARCH" == "x86" ]]; then |
38 | pkgs=("${pkgs[@]/%/:i386}"); | |
524537cb | 39 | pkgs+=(gcc-multilib python-scipy); |
be90946e SW |
40 | EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32"; |
41 | else | |
524537cb | 42 | pkgs+=(glusterfs-common python-scipy); |
be90946e SW |
43 | fi; |
44 | sudo apt-get -qq update; | |
45 | sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}"; | |
79e55936 | 46 | fi; |
524537cb VF |
47 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
48 | brew update; | |
49 | brew install cunit; | |
50 | if [[ "$TRAVIS_OSX_IMAGE" == "xcode11.2" ]]; then | |
51 | pip3 install scipy; | |
524537cb | 52 | fi; |
79e55936 VF |
53 | pip install scipy; |
54 | fi; | |
a397a400 | 55 | script: |
be90946e SW |
56 | - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make |
57 | - make test | |
79e55936 | 58 | - sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug |