Skip bench of no .rs files are modified in a PR

This commit is contained in:
Michael Vines 2018-12-18 18:01:34 -08:00 committed by Grimes
parent 3efbffe4e3
commit b4fe70d3d8
1 changed files with 16 additions and 0 deletions

View File

@ -3,6 +3,22 @@ set -e
cd "$(dirname "$0")/.."
annotate() {
${BUILDKITE:-false} && {
buildkite-agent annotate "$@"
}
}
ci/affects-files.sh \
.rs: \
ci/test-bench.sh: \
|| {
annotate --style info --context coverage-info \
"Bench skipped as no .rs files were modified"
exit 0
}
source ci/_
source ci/upload-ci-artifact.sh