Split out rust doc tests in CI (#24397)
This commit is contained in:
parent
4fda3a3ceb
commit
65d33b3715
@ -148,6 +148,18 @@ all_test_steps() {
|
|||||||
|
|
||||||
# Full test suite
|
# Full test suite
|
||||||
command_step stable ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/test-stable.sh" 70
|
command_step stable ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/test-stable.sh" 70
|
||||||
|
|
||||||
|
# Docs tests
|
||||||
|
if affects \
|
||||||
|
.rs$ \
|
||||||
|
^ci/rust-version.sh \
|
||||||
|
^ci/test-docs.sh \
|
||||||
|
; then
|
||||||
|
command_step doctest "ci/test-docs.sh" 15
|
||||||
|
else
|
||||||
|
annotate --style info --context test-docs \
|
||||||
|
"Docs skipped as no .rs files were modified"
|
||||||
|
fi
|
||||||
wait_step
|
wait_step
|
||||||
|
|
||||||
# BPF test suite
|
# BPF test suite
|
||||||
|
1
ci/test-docs.sh
Symbolic link
1
ci/test-docs.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
test-stable.sh
|
@ -30,7 +30,7 @@ JOBS=$((JOBS>NPROC ? NPROC : JOBS))
|
|||||||
echo "Executing $testName"
|
echo "Executing $testName"
|
||||||
case $testName in
|
case $testName in
|
||||||
test-stable)
|
test-stable)
|
||||||
_ "$cargo" stable test --jobs "$JOBS" --all --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
|
_ "$cargo" stable test --jobs "$JOBS" --all --tests --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
|
||||||
;;
|
;;
|
||||||
test-stable-bpf)
|
test-stable-bpf)
|
||||||
# Clear the C dependency files, if dependency moves these files are not regenerated
|
# Clear the C dependency files, if dependency moves these files are not regenerated
|
||||||
@ -130,6 +130,10 @@ test-wasm)
|
|||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
test-docs)
|
||||||
|
_ "$cargo" stable test --jobs "$JOBS" --all --doc --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Error: Unknown test: $testName"
|
echo "Error: Unknown test: $testName"
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user