Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/setup-debian-bullseye.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 | ||||
TEAMCITY_DIR=$(dirname "$0") | TEAMCITY_DIR=$(dirname "$0") | ||||
# Install all the build dependencies | # Install all the build dependencies | ||||
"${TEAMCITY_DIR}"/../utils/install-dependencies-bullseye.sh | "${TEAMCITY_DIR}"/../utils/install-dependencies-bullseye.sh | ||||
# Python library for interacting with teamcity | # Python library for interacting with teamcity | ||||
pip3 install teamcity-messages | pip3 install teamcity-messages | ||||
# Gather the IP address, useful for the website preview builds | |||||
pip3 install whatismyip | |||||
# Install Python dependencies for the build bot | # Install Python dependencies for the build bot | ||||
# Note: Path should be relative to TEAMCITY_DIR since the base image build | # Note: Path should be relative to TEAMCITY_DIR since the base image build | ||||
# context may be different than the project root. | # context may be different than the project root. | ||||
pip3 install -r "${TEAMCITY_DIR}"/../buildbot/requirements.txt | pip3 install -r "${TEAMCITY_DIR}"/../buildbot/requirements.txt | ||||
# Set default git config so that any git operations requiring authoring, | # Set default git config so that any git operations requiring authoring, | ||||
# rebasing, or cherry-picking of commits just work out of the box. | # rebasing, or cherry-picking of commits just work out of the box. | ||||
git config --global user.name "abc-bot" | git config --global user.name "abc-bot" | ||||
git config --global user.email "no-email-abc-bot@bitcoinabc.org" | git config --global user.email "no-email-abc-bot@bitcoinabc.org" | ||||
# npm uses ssh to connect to github by default, use https instead | # npm uses ssh to connect to github by default, use https instead | ||||
git config --global url."https://github.com".insteadOf ssh://git@github.com | git config --global url."https://github.com".insteadOf ssh://git@github.com |