Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/setup-debian-buster.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
export LC_ALL=C.UTF-8 | export LC_ALL=C.UTF-8 | ||||
set -euxo pipefail | set -euxo pipefail | ||||
dpkg --add-architecture i386 | dpkg --add-architecture i386 | ||||
PACKAGES=( | PACKAGES=( | ||||
arcanist | arcanist | ||||
automake | automake | ||||
autotools-dev | autotools-dev | ||||
binutils | binutils | ||||
bsdmainutils | bsdmainutils | ||||
build-essential | build-essential | ||||
ccache | ccache | ||||
cmake | |||||
cppcheck | cppcheck | ||||
curl | curl | ||||
flake8 | flake8 | ||||
g++-aarch64-linux-gnu | g++-aarch64-linux-gnu | ||||
g++-arm-linux-gnueabihf | g++-arm-linux-gnueabihf | ||||
git | git | ||||
golang | golang | ||||
g++-mingw-w64 | g++-mingw-w64 | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | function join_by() { | ||||
shift | shift | ||||
echo "$*" | echo "$*" | ||||
} | } | ||||
apt-get update | apt-get update | ||||
DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${PACKAGES[@]}") | DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${PACKAGES[@]}") | ||||
BACKPORTS=( | BACKPORTS=( | ||||
cmake | |||||
shellcheck | shellcheck | ||||
) | ) | ||||
echo "deb http://deb.debian.org/debian buster-backports main" | tee -a /etc/apt/sources.list | echo "deb http://deb.debian.org/debian buster-backports main" | tee -a /etc/apt/sources.list | ||||
apt-get update | apt-get update | ||||
DEBIAN_FRONTEND=noninteractive apt-get -t buster-backports install -y $(join_by ' ' "${BACKPORTS[@]}") | DEBIAN_FRONTEND=noninteractive apt-get -t buster-backports install -y $(join_by ' ' "${BACKPORTS[@]}") | ||||
TEAMCITY_DIR=$(dirname "$0") | TEAMCITY_DIR=$(dirname "$0") | ||||
Show All 35 Lines |