Merge branch 'master' of https://github.com/donny372/fio into master
[fio.git] / ci / travis-build.sh
1 #!/bin/bash
2
3 CI_TARGET_ARCH="${BUILD_ARCH:-$TRAVIS_CPU_ARCH}"
4 EXTRA_CFLAGS="-Werror"
5 PYTHONUNBUFFERED=TRUE
6 CONFIGURE_FLAGS=()
7
8 case "$TRAVIS_OS_NAME" in
9     "linux")
10         CONFIGURE_FLAGS+=(--enable-libiscsi)
11         case "$CI_TARGET_ARCH" in
12             "x86")
13                 EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32"
14                 ;;
15             "amd64")
16                 CONFIGURE_FLAGS+=(--enable-cuda)
17                 ;;
18         esac
19     ;;
20 esac
21 CONFIGURE_FLAGS+=(--extra-cflags="${EXTRA_CFLAGS}")
22
23 ./configure "${CONFIGURE_FLAGS[@]}" &&
24     make &&
25     make test &&
26     if [[ "$CI_TARGET_ARCH" == "arm64" ]]; then
27         sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug -p 1010:"--skip 15 16 17 18 19 20"
28     else
29         sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug
30     fi