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 opts="--allow-downgrades"
35 pkgs=("${pkgs[@]/%/:i386}")
47 libgoogle-perftools-dev
59 # Architecture-independent packages and packages for which we don't
60 # care about the architecture.
66 echo "Updating APT..."
67 sudo apt-get -qq update
68 echo "Installing packages..."
69 sudo apt-get install "$opts" -o APT::Immediate-Configure=false --no-install-recommends -qq -y "${pkgs[@]}"
77 # Assumes homebrew and python3 are already installed
78 #echo "Updating homebrew..."
79 #brew update >/dev/null 2>&1
80 echo "Installing packages..."
81 HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit
82 pip3 install scipy six sphinx
86 if [ "${CI_TARGET_BUILD}" = "android" ]; then
87 echo "Installing Android NDK..."
88 wget --quiet https://dl.google.com/android/repository/android-ndk-r24-linux.zip
89 unzip -q android-ndk-r24-linux.zip
95 install_function="install_${CI_TARGET_OS}"
98 echo "Python3 path: $(type -p python3 2>&1)"
99 echo "Python3 version: $(python3 -V 2>&1)"