Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/setup-debian-buster.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
File Mode | null | 100755 |
#!/usr/bin/env bash | |||||
export LC_ALL=C.UTF-8 | |||||
set -euxo pipefail | |||||
dpkg --add-architecture i386 | |||||
PACKAGES=( | |||||
apt-cacher-ng | |||||
automake | |||||
autotools-dev | |||||
bsdmainutils | |||||
build-essential | |||||
ccache | |||||
clang | |||||
cmake | |||||
curl | |||||
g++-aarch64-linux-gnu | |||||
g++-arm-linux-gnueabihf | |||||
git | |||||
g++-mingw-w64 | |||||
gnupg | |||||
gperf | |||||
imagemagick | |||||
less | |||||
lib32stdc++-8-dev | |||||
libboost-all-dev | |||||
libbz2-dev | |||||
libc6-dev:i386 | |||||
libcap-dev | |||||
libdb++-dev | |||||
libdb-dev | |||||
libevent-dev | |||||
libminiupnpc-dev | |||||
libprotobuf-dev | |||||
libqrencode-dev | |||||
libqt5core5a | |||||
libqt5dbus5 | |||||
libqt5gui5 | |||||
librsvg2-bin | |||||
libssl-dev | |||||
libtiff-tools | |||||
libtinfo5 | |||||
libtool | |||||
libzmq3-dev | |||||
make | |||||
ninja-build | |||||
nsis | |||||
pkg-config | |||||
protobuf-compiler | |||||
python3 | |||||
python3-setuptools | |||||
python3-zmq | |||||
qttools5-dev | |||||
qttools5-dev-tools | |||||
software-properties-common | |||||
wget | |||||
) | |||||
function join_by() { | |||||
local IFS="$1" | |||||
shift | |||||
echo "$*" | |||||
} | |||||
apt-get update | |||||
DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${PACKAGES[@]}") | |||||
# Add the AdoptOpenJDK repo | |||||
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - | |||||
deadalnix: Providing the keys to the script rather than downloading them is preferable. | |||||
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ | |||||
apt-get update | |||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes adoptopenjdk-8-hotspot | |||||
ln -s /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 /usr/lib/jvm/default-java | |||||
deadalnixUnsubmitted Not Done Inline ActionsUpdate alternative can probably do that, no? deadalnix: Update alternative can probably do that, no? | |||||
jasonbcoxAuthorUnsubmitted Done Inline ActionsProbably. This script was adapted from an old setup script we used for the build agents. I would need to experiment with this more, so will leave that for another patch. jasonbcox: Probably. This script was adapted from an old setup script we used for the build agents. I… | |||||
echo 'JAVA_HOME="/usr/lib/jvm/default-java"' >> /etc/environment | |||||
# Install llvm-8 | |||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - | |||||
add-apt-repository "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-8 main" | |||||
apt-get update | |||||
apt-get install -y --force-yes clang-format-8 clang-tidy-8 clang-tools-8 |
Providing the keys to the script rather than downloading them is preferable.