Merge branch 'master' of https://github.com/donny372/fio into master
[fio.git] / ci / travis-build.sh
CommitLineData
12e86ecb
BVA
1#!/bin/bash
2
cf6d8924 3CI_TARGET_ARCH="${BUILD_ARCH:-$TRAVIS_CPU_ARCH}"
12e86ecb 4EXTRA_CFLAGS="-Werror"
f41f4fbe 5PYTHONUNBUFFERED=TRUE
cf6d8924 6CONFIGURE_FLAGS=()
12e86ecb 7
cf6d8924
SW
8case "$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 ;;
20esac
21CONFIGURE_FLAGS+=(--extra-cflags="${EXTRA_CFLAGS}")
12e86ecb 22
cf6d8924 23./configure "${CONFIGURE_FLAGS[@]}" &&
12e86ecb
BVA
24 make &&
25 make test &&
cf6d8924 26 if [[ "$CI_TARGET_ARCH" == "arm64" ]]; then
12e86ecb
BVA
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