代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
set -Eeuxo pipefail
source ./tasks/helpers.sh
source ./tasks/helpers/detect_os_release.sh
# shellcheck source=build/package_dependencies.sh
source "$SOURCE_DIR/build/package_dependencies.sh"
install_dependencies=("${all_build_dependencies[@]}")
if [ "${INSTALL_TEST_DEPENDENCIES:-}" == "true" ]; then
install_dependencies=("${all_dependencies[@]}")
fi
detect_os_release
if [[ "$ID_NORMALIZED" == "rhel" && "$VERSION_ID" == "7" ]]; then
# Dependencies for GCC 7+ for compiling TrafficServer (C++17 required).
yum -y install centos-release-scl
yum -y install "${install_dependencies[@]}"
# Ensure the packages got installed, since yum's exit code isn't always
# useful: http://stackoverflow.com/a/22393088
rpm --query --queryformat "" "${install_dependencies[@]}"
elif [[ "$ID_NORMALIZED" == "debian" ]]; then
# Dependencies for GCC 7+ or Clang 5+ for compiling TrafficServer (C++17
# required).
if [[ "$ID" == "debian" && "$VERSION_ID" == "9" ]]; then
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install curl ca-certificates gnupg
curl -sS https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
if [[ "$ID" == "debian" && "$VERSION_ID" == "8" ]]; then
echo "deb http://apt.llvm.org/jessie/ llvm-toolchain-jessie-7 main" > /etc/apt/sources.list.d/api-umbrella-llvm.list
else
echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main" > /etc/apt/sources.list.d/api-umbrella-llvm.list
fi
fi
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install "${install_dependencies[@]}"
else
echo "Unknown build system"
exit 1
fi
if [ "${INSTALL_TEST_DEPENDENCIES:-}" == "true" ]; then
if [ "$ID" == "debian" ]; then
# Add Chromium for integration tests.
apt-get update
apt-get -y --no-install-recommends install chromium chromium-driver curl unzip
chromium --version
chromedriver --version
fi
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。