diff --git a/contrib/teamcity/setup-land-bot.sh b/contrib/teamcity/setup-land-bot.sh new file mode 100755 --- /dev/null +++ b/contrib/teamcity/setup-land-bot.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +export LC_ALL=C.UTF-8 + +set -euxo pipefail + +# Use the exact same setup as our other builds do +TEAMCITY_DIR=$(dirname "$0") +"${TEAMCITY_DIR}"/setup-debian-buster.sh + +# Add additional depenendencies needed by the land bot +PACKAGES=( + arcanist + jq + python3-pip +) + +function join_by() { + local IFS="$1" + shift + echo "$*" +} + +apt-get update +DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${PACKAGES[@]}") + +pip3 install autopep8 flake8