Add --features=external_include_paths to Bazel CI to ignore warnings

from dependencies

PiperOrigin-RevId: 467244441
Change-Id: Iefa65474d8c62e7c4c942957dc8e275715076e5f
This commit is contained in:
Derek Mauro 2022-08-12 10:46:04 -07:00 committed by Copybara-Service
parent 4c9a3bb62b
commit 7274ec1864
3 changed files with 7 additions and 3 deletions

View File

@ -17,7 +17,7 @@ jobs:
fetch-depth: 0
- name: Tests
run: bazel test --test_output=errors //...
run: bazel test --cxxopt=-std=c++14 --features=external_include_paths --test_output=errors ...
MacOs:
runs-on: macos-latest
@ -28,7 +28,7 @@ jobs:
fetch-depth: 0
- name: Tests
run: bazel test --test_output=errors //...
run: bazel test --cxxopt=-std=c++14 --features=external_include_paths --test_output=errors ...
Windows:
@ -40,4 +40,4 @@ jobs:
fetch-depth: 0
- name: Tests
run: bazel test --test_output=errors //...
run: bazel test --cxxopt=-std=c++14 --features=external_include_paths --test_output=errors ...

View File

@ -80,6 +80,7 @@ time docker run \
--copt="-Wuninitialized" \
--copt="-Wno-error=pragmas" \
--distdir="/bazel-distdir" \
--features=external_include_paths \
--keep_going \
--show_timestamps \
--test_output=errors
@ -100,6 +101,7 @@ for std in ${STD}; do
--copt="-Wuninitialized" \
--define="absl=${absl}" \
--distdir="/bazel-distdir" \
--features=external_include_paths \
--keep_going \
--show_timestamps \
--test_output=errors
@ -123,6 +125,7 @@ for std in ${STD}; do
--copt="-Wuninitialized" \
--define="absl=${absl}" \
--distdir="/bazel-distdir" \
--features=external_include_paths \
--keep_going \
--linkopt="--gcc-toolchain=/usr/local" \
--show_timestamps \

View File

@ -68,6 +68,7 @@ for absl in 0 1; do
--copt="-Werror" \
--cxxopt="-std=c++14" \
--define="absl=${absl}" \
--features=external_include_paths \
--keep_going \
--show_timestamps \
--test_output=errors