engines/io_uring: add verbose error for ENOSYS
[fio.git] / ci / travis-install.sh
index 1bb1063fdb1bd9eca52afe18abebe9d02ea02963..103695dc6d6391f132d90681a6be4e8009b76f87 100755 (executable)
@@ -1,11 +1,12 @@
 #!/bin/bash
+set -eu
 
+CI_TARGET_ARCH="${BUILD_ARCH:-$TRAVIS_CPU_ARCH}"
 case "$TRAVIS_OS_NAME" in
     "linux")
        # Architecture-dependent packages.
        pkgs=(
            libaio-dev
-           libcunit1
            libcunit1-dev
            libfl-dev
            libgoogle-perftools-dev
@@ -16,14 +17,20 @@ case "$TRAVIS_OS_NAME" in
            librdmacm-dev
            libz-dev
        )
-       if [[ "$BUILD_ARCH" == "x86" ]]; then
-           pkgs=("${pkgs[@]/%/:i386}")
-           pkgs+=(gcc-multilib)
-       else
-           pkgs+=(
-               glusterfs-common
-               nvidia-cuda-dev
-           )
+       case "$CI_TARGET_ARCH" in
+           "x86")
+               pkgs=("${pkgs[@]/%/:i386}")
+               pkgs+=(
+                   gcc-multilib
+                   pkg-config:i386
+               )
+               ;;
+           "amd64")
+               pkgs+=(nvidia-cuda-dev)
+               ;;
+       esac
+       if [[ $CI_TARGET_ARCH != "x86" ]]; then
+               pkgs+=(glusterfs-common)
        fi
        # Architecture-independent packages and packages for which we don't
        # care about the architecture.
@@ -44,6 +51,5 @@ case "$TRAVIS_OS_NAME" in
        ;;
 esac
 
-echo "Python version: $(/usr/bin/python -V 2>&1)"
-echo "Python3 path: $(which python3 2>&1)"
+echo "Python3 path: $(type -p python3 2>&1)"
 echo "Python3 version: $(python3 -V 2>&1)"