Tweak CI script to not run tests tagged as manual.
--
Change-Id: I424db210611f94b986eda872626a97415221fcea
Reviewed-on: https://bazel-review.googlesource.com/1800
MOS_MIGRATED_REVID=100806076
diff --git a/scripts/ci/ci.sh b/scripts/ci/ci.sh
index b481199..f5325be 100755
--- a/scripts/ci/ci.sh
+++ b/scripts/ci/ci.sh
@@ -55,14 +55,20 @@
done
# Query for the associated buildables
-buildables=$(bazel query --keep_going --noshow_progress "kind(.*_binary, rdeps(//..., set(${files[@]})))")
+buildables=$(bazel query \
+ --keep_going \
+ --noshow_progress \
+ "kind(.*_binary, rdeps(//..., set(${files[@]})))")
# Run the tests if there were results
if [[ ! -z $buildables ]]; then
echo "Building binaries"
bazel build $buildables
fi
-tests=$(bazel query --keep_going --noshow_progress "kind(test, rdeps(//..., set(${files[@]})))")
+tests=$(bazel query \
+ --keep_going \
+ --noshow_progress \
+ "kind(test, rdeps(//..., set(${files[@]}))) except attr('tags', 'manual', //...)")
# Run the tests if there were results
if [[ ! -z $tests ]]; then
echo "Running tests"