skip skeleton comments
[fio.git] / ci / travis-install.sh
index b6895e82cb98daecc22b8eb1fba32a0540312598..4c4c04c5d6ae4a781c52270a0f62fcbc337951e5 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-set -e
+set -eu
 
 CI_TARGET_ARCH="${BUILD_ARCH:-$TRAVIS_CPU_ARCH}"
 case "$TRAVIS_OS_NAME" in
@@ -43,6 +43,16 @@ case "$TRAVIS_OS_NAME" in
        )
        sudo apt-get -qq update
        sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}"
+       # librpma is supported on the amd64 (x86_64) architecture for now
+       if [[ $CI_TARGET_ARCH == "amd64" ]]; then
+               # install libprotobuf-c-dev required by librpma_gpspm
+               sudo apt-get install --no-install-recommends -qq -y libprotobuf-c-dev
+               # PMDK libraries have to be installed, because
+               # libpmem is a dependency of the librpma fio engine
+               ci/travis-install-pmdk.sh
+               # install librpma from sources from GitHub
+               ci/travis-install-librpma.sh
+       fi
        ;;
     "osx")
        brew update >/dev/null 2>&1
@@ -51,6 +61,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)"