Merge branch 'nowait' of https://github.com/koct9i/fio
[fio.git] / ci / travis-install.sh
1 #!/bin/bash
2
3 case "$TRAVIS_OS_NAME" in
4     "linux")
5         # Architecture-dependent packages.
6         pkgs=(
7             libaio-dev
8             libcunit1
9             libcunit1-dev
10             libgoogle-perftools4
11             libibverbs-dev
12             libiscsi-dev
13             libnuma-dev
14             librbd-dev
15             librdmacm-dev
16             libz-dev
17         )
18         if [[ "$BUILD_ARCH" == "x86" ]]; then
19             pkgs=("${pkgs[@]/%/:i386}")
20             pkgs+=(gcc-multilib)
21         else
22             pkgs+=(glusterfs-common)
23         fi
24         # Architecture-independent packages and packages for which we don't
25         # care about the architecture.
26         pkgs+=(
27             python3
28             python3-scipy
29             python3-six
30         )
31         sudo apt-get -qq update
32         sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}"
33         ;;
34     "osx")
35         brew update >/dev/null 2>&1
36         brew install cunit
37         pip3 install scipy
38         pip3 install six
39         ;;
40 esac
41
42 echo "Python version: $(/usr/bin/python -V 2>&1)"
43 echo "Python3 path: $(which python3 2>&1)"
44 echo "Python3 version: $(python3 -V 2>&1)"