Skip to content

Commit

Permalink
[ci] Split SW build and test
Browse files Browse the repository at this point in the history
Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Sep 1, 2023
1 parent ddee8ee commit 632356e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ jobs:
# Check the entire build graph for conflicts in loading or analysis
# phases. For context, see issue #18726.
ci/bazelisk.sh build --nobuild //...
# This command builds all software and runs all unit tests that run on the
# host, with a few exceptions:
# This command selects the unit tests to be executed:
# * It excludes //quality because that's the purview of `slow_lints`.
# * It excludes the tests from //third_party/riscv-compliance because
# they're already covered by `execute_fpga_tests_cw310`.
Expand All @@ -234,18 +234,29 @@ jobs:
--define DISABLE_VERILATOR_BUILD=true \
-- "rdeps(//..., kind(bitstream_splice, //...))" \
>> "${TARGET_PATTERN_FILE}"
# Build unit tests and their dependencies.
ci/bazelisk.sh build \
--build_tests_only=false \
--define DISABLE_VERILATOR_BUILD=true \
--test_tag_filters=-broken,-cw310,-verilator,-dv \
--target_pattern_file="${TARGET_PATTERN_FILE}"
# Export the "TARGET_PATTERN_FILE" variable to be used in tests.
echo "##vso[task.setvariable variable=targetPatternFile]${TARGET_PATTERN_FILE}"
displayName: Build SW
- bash: |
set -x -e
export GCP_BAZEL_CACHE_KEY=$(bazelCacheGcpKeyPath)
export TARGET_PATTERN_FILE=$(targetPatternFile)
ci/bazelisk.sh test \
--build_tests_only=false \
--test_output=errors \
--define DISABLE_VERILATOR_BUILD=true \
--test_tag_filters=-broken,-cw310,-verilator,-dv \
--target_pattern_file="${TARGET_PATTERN_FILE}"
displayName: Build & test SW
displayName: Test SW
- bash: |
set -x -e
. util/build_consts.sh
Expand Down

0 comments on commit 632356e

Please sign in to comment.