diff --git a/contrib/teamcity/build-configurations.yml b/contrib/teamcity/build-configurations.yml --- a/contrib/teamcity/build-configurations.yml +++ b/contrib/teamcity/build-configurations.yml @@ -325,6 +325,10 @@ - check-functional timeout: 1800 + check-buildbot: + script: builds/check-buildbot.sh + timeout: 600 + check-seeds: script: builds/check-seeds.sh templates: diff --git a/contrib/teamcity/builds/check-buildbot.sh b/contrib/teamcity/builds/check-buildbot.sh new file mode 100755 --- /dev/null +++ b/contrib/teamcity/builds/check-buildbot.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +export LC_ALL=C.UTF-8 + +set -euxo pipefail + +# shellcheck source=../ci-fixture.sh +source "${TOPLEVEL}/contrib/teamcity/ci-fixture.sh" + +cd "${TOPLEVEL}"/contrib/buildbot/test + +pytest diff --git a/contrib/teamcity/setup-debian-buster.sh b/contrib/teamcity/setup-debian-buster.sh --- a/contrib/teamcity/setup-debian-buster.sh +++ b/contrib/teamcity/setup-debian-buster.sh @@ -125,6 +125,13 @@ pip3 install teamcity-messages # Python library for merging nested structures pip3 install deepmerge +# For running Python test suites +pip3 install pytest + +# Install Python dependencies for the build bot +# Note: Path should be relative to TEAMCITY_DIR since the base image build +# context may be different than the project root. +pip3 install -r "${TEAMCITY_DIR}"/../buildbot/requirements.txt # Install pandoc. The version from buster is outdated, so get a more recent one # from github.