2 # This script expects to be invoked from the base fio directory.
5 SCRIPT_DIR=$(dirname "$0")
6 # shellcheck disable=SC1091
7 . "${SCRIPT_DIR}/common.sh"
12 cat <<DPKGCFG | sudo tee /etc/dpkg/dpkg.cfg.d/dpkg-speedup > /dev/null
15 # Don't install documentation
16 path-exclude=/usr/share/man/*
17 path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo
18 path-exclude=/usr/share/doc/*
20 # Packages available on i686 and x86_64
31 case "${CI_TARGET_ARCH}" in
33 sudo dpkg --add-architecture i386
34 pkgs=("${pkgs[@]/%/:i386}")
44 libgoogle-perftools-dev
56 # Architecture-independent packages and packages for which we don't
57 # care about the architecture.
62 echo "Updating APT..."
63 sudo apt-get -qq update
64 echo "Installing packages..."
65 sudo apt-get install -o APT::Immediate-Configure=false --no-install-recommends -qq -y "${pkgs[@]}"
73 # Assumes homebrew and python3 are already installed
74 #echo "Updating homebrew..."
75 #brew update >/dev/null 2>&1
76 echo "Installing packages..."
77 HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit
78 pip3 install scipy six
84 install_function="install_${CI_TARGET_OS}"
87 echo "Python3 path: $(type -p python3 2>&1)"
88 echo "Python3 version: $(python3 -V 2>&1)"