diff options
author | Erik Kuefler <ekuefler@gmail.com> | 2015-08-17 08:41:54 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-08-17 09:09:05 +0000 |
commit | cc07634ad8819c40df1fd5d3484661d3fd3061f3 (patch) | |
tree | 047e090e7fe5ca2a42804202a67406258bd673b7 /scripts/ci/ci.sh | |
parent | f7a3931d7de0f99f5297bcc694b1e28625911d73 (diff) |
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
Diffstat (limited to 'scripts/ci/ci.sh')
-rwxr-xr-x | scripts/ci/ci.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/ci/ci.sh b/scripts/ci/ci.sh index b481199f57..f5325becb1 100755 --- a/scripts/ci/ci.sh +++ b/scripts/ci/ci.sh @@ -55,14 +55,20 @@ for file in $(git diff --name-only ${COMMIT_RANGE} ); do 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" |