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