Merge branch 'add-librpma-engines' of https://github.com/janekmi/fio
[fio.git] / ci / travis-install.sh
CommitLineData
12e86ecb 1#!/bin/bash
a9b9b162 2set -eu
12e86ecb 3
cf6d8924 4CI_TARGET_ARCH="${BUILD_ARCH:-$TRAVIS_CPU_ARCH}"
12e86ecb
BVA
5case "$TRAVIS_OS_NAME" in
6 "linux")
a06e4477 7 # Architecture-dependent packages.
12e86ecb
BVA
8 pkgs=(
9 libaio-dev
12e86ecb 10 libcunit1-dev
ea621cdb
SW
11 libfl-dev
12 libgoogle-perftools-dev
12e86ecb
BVA
13 libibverbs-dev
14 libiscsi-dev
15 libnuma-dev
16 librbd-dev
17 librdmacm-dev
18 libz-dev
19 )
cf6d8924
SW
20 case "$CI_TARGET_ARCH" in
21 "x86")
22 pkgs=("${pkgs[@]/%/:i386}")
7a64f9e4
SW
23 pkgs+=(
24 gcc-multilib
25 pkg-config:i386
26 )
cf6d8924
SW
27 ;;
28 "amd64")
29 pkgs+=(nvidia-cuda-dev)
30 ;;
31 esac
32 if [[ $CI_TARGET_ARCH != "x86" ]]; then
33 pkgs+=(glusterfs-common)
12e86ecb 34 fi
a06e4477
BVA
35 # Architecture-independent packages and packages for which we don't
36 # care about the architecture.
37 pkgs+=(
ea621cdb
SW
38 bison
39 flex
a06e4477
BVA
40 python3
41 python3-scipy
42 python3-six
43 )
12e86ecb
BVA
44 sudo apt-get -qq update
45 sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}"
e4c4625f
JM
46 # librpma is supported on the amd64 (x86_64) architecture for now
47 if [[ $CI_TARGET_ARCH == "amd64" ]]; then
48 # install libprotobuf-c-dev required by librpma_gpspm
49 sudo apt-get install --no-install-recommends -qq -y libprotobuf-c-dev
50 # PMDK libraries have to be installed, because
51 # libpmem is a dependency of the librpma fio engine
52 ci/travis-install-pmdk.sh
53 # install librpma from sources from GitHub
54 ci/travis-install-librpma.sh
55 fi
12e86ecb
BVA
56 ;;
57 "osx")
a06e4477 58 brew update >/dev/null 2>&1
12e86ecb 59 brew install cunit
ea621cdb 60 pip3 install scipy six
12e86ecb
BVA
61 ;;
62esac
a06e4477 63
a9b9b162 64echo "Python3 path: $(type -p python3 2>&1)"
a06e4477 65echo "Python3 version: $(python3 -V 2>&1)"