Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/setup-debian-buster.sh
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | PACKAGES=( | ||||
protobuf-compiler | protobuf-compiler | ||||
python3 | python3 | ||||
python3-autopep8 | python3-autopep8 | ||||
python3-setuptools | python3-setuptools | ||||
python3-zmq | python3-zmq | ||||
qemu-user-static | qemu-user-static | ||||
qttools5-dev | qttools5-dev | ||||
qttools5-dev-tools | qttools5-dev-tools | ||||
shellcheck | |||||
software-properties-common | software-properties-common | ||||
tar | tar | ||||
wget | wget | ||||
wine | wine | ||||
) | ) | ||||
function join_by() { | function join_by() { | ||||
local IFS="$1" | local IFS="$1" | ||||
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=( | |||||
shellcheck | |||||
) | |||||
echo "deb http://deb.debian.org/debian buster-backports main" | tee -a /etc/apt/sources.list | |||||
apt-get update | |||||
DEBIAN_FRONTEND=noninteractive apt-get -t buster-backports install -y $(join_by ' ' "${BACKPORTS[@]}") | |||||
TEAMCITY_DIR=$(dirname "$0") | TEAMCITY_DIR=$(dirname "$0") | ||||
# FIXME this should no longer be needed starting with Teamcity 2020.1, which | # FIXME this should no longer be needed starting with Teamcity 2020.1, which | ||||
# supports Java 11. | # supports Java 11. | ||||
"${TEAMCITY_DIR}/install_openjdk8.sh" | "${TEAMCITY_DIR}/install_openjdk8.sh" | ||||
# Install llvm-8 and clang-10 | # Install llvm-8 and clang-10 | ||||
apt-key add "${TEAMCITY_DIR}"/llvm.pub | apt-key add "${TEAMCITY_DIR}"/llvm.pub | ||||
Show All 21 Lines |