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=( | ||||
apt-cacher-ng | apt-cacher-ng | ||||
automake | automake | ||||
autotools-dev | autotools-dev | ||||
bsdmainutils | bsdmainutils | ||||
build-essential | build-essential | ||||
ccache | ccache | ||||
clang | |||||
cmake | cmake | ||||
curl | curl | ||||
g++-aarch64-linux-gnu | g++-aarch64-linux-gnu | ||||
g++-arm-linux-gnueabihf | g++-arm-linux-gnueabihf | ||||
git | git | ||||
g++-mingw-w64 | g++-mingw-w64 | ||||
gnupg | gnupg | ||||
gperf | gperf | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
ln -s /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 /usr/lib/jvm/default-java | ln -s /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 /usr/lib/jvm/default-java | ||||
echo 'JAVA_HOME="/usr/lib/jvm/default-java"' >> /etc/environment | echo 'JAVA_HOME="/usr/lib/jvm/default-java"' >> /etc/environment | ||||
# Install llvm-8 | # Install llvm-8 | ||||
apt-key add "${TEAMCITY_DIR}"/llvm.pub | apt-key add "${TEAMCITY_DIR}"/llvm.pub | ||||
add-apt-repository "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-8 main" | add-apt-repository "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-8 main" | ||||
apt-get update | apt-get update | ||||
apt-get install -y clang-format-8 clang-tidy-8 clang-tools-8 | |||||
LLVM_PACKAGES=( | |||||
clang-8 | |||||
clang-format-8 | |||||
clang-tidy-8 | |||||
clang-tools-8 | |||||
) | |||||
DEBIAN_FRONTEND=noninteractive apt-get install -y $(join_by ' ' "${LLVM_PACKAGES[@]}") | |||||
update-alternatives --install /usr/bin/clang clang "$(command -v clang-8)" 100 | |||||
update-alternatives --install /usr/bin/clang++ clang++ "$(command -v clang++-8)" 100 | |||||
# Use the mingw posix variant | # Use the mingw posix variant | ||||
update-alternatives --set x86_64-w64-mingw32-g++ $(command -v x86_64-w64-mingw32-g++-posix) | update-alternatives --set x86_64-w64-mingw32-g++ $(command -v x86_64-w64-mingw32-g++-posix) | ||||
update-alternatives --set x86_64-w64-mingw32-gcc $(command -v x86_64-w64-mingw32-gcc-posix) | update-alternatives --set x86_64-w64-mingw32-gcc $(command -v x86_64-w64-mingw32-gcc-posix) |