Skip to content

Commit a7e57b5

Browse files
committed
teamcity: add s390x unit tests build configuration
Epic: CRDB-21133 Release note: None
1 parent c0b904a commit a7e57b5

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2022 The Cockroach Authors.
4+
#
5+
# Use of this software is governed by the CockroachDB Software License
6+
# included in the /LICENSE file.
7+
8+
9+
set -euo pipefail
10+
11+
dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))"
12+
13+
source "$dir/teamcity-support.sh" # For $root
14+
source "$dir/teamcity-bazel-support.sh" # For run_bazel
15+
16+
tc_start_block "Run unit tests"
17+
BAZEL_SUPPORT_EXTRA_DOCKER_ARGS="-e TC_BUILD_BRANCH -e GITHUB_API_TOKEN -e BUILD_VCS_NUMBER -e TC_BUILD_ID -e TC_SERVER_URL -e TC_BUILDTYPE_ID -e GITHUB_REPO" run_bazel build/teamcity/cockroach/ci/tests-ibm-cloud-linux-s390x/unit_tests_impl.sh
18+
tc_end_block "Run unit tests"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2024 The Cockroach Authors.
4+
#
5+
# Use of this software is governed by the CockroachDB Software License
6+
# included in the /LICENSE file.
7+
8+
9+
set -euo pipefail
10+
11+
dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))"
12+
13+
source "$dir/teamcity-support.sh" # for 'tc_release_branch'
14+
15+
bazel build //pkg/cmd/bazci
16+
17+
# Omit the ui_test as it depends on Javascript stuff; we don't have nodejs stuff
18+
# for s390x and it's expensive to pull in anyway.
19+
TESTS=$(bazel query 'kind(go_test, pkg/...) except attr("tags", "[\[ ]integration[,\]]", kind(go_test, pkg/...))' | grep -v ui_test)
20+
21+
set -x
22+
23+
$(bazel info bazel-bin)/pkg/cmd/bazci/bazci_/bazci -- test --config=ci --config=dev \
24+
$TESTS \
25+
--profile=/artifacts/profile.gz

0 commit comments

Comments
 (0)