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 11, 2023
1 parent 74b9e1d commit 617ac40
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 @@ -208,8 +208,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 //sw/otbn/crypto because that's tested in `otbn_crypto_tests`.
# * It excludes the tests from //third_party/riscv-compliance because
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
- template: ci/publish-bazel-test-results.yml
- bash: |
set -x -e
Expand Down

0 comments on commit 617ac40

Please sign in to comment.