Skip to content

Commit

Permalink
Only build tests with bazel test --config=unit
Browse files Browse the repository at this point in the history
  • Loading branch information
ixdy committed Jan 8, 2019
1 parent 3fd6f97 commit e34a061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build/root/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ build --sandbox_fake_username
# Enable go race detection.
build:unit --features=race
test:unit --features=race

test:unit --build_tests_only
test:unit --test_tag_filters=-e2e,-integration
test:unit --flaky_test_attempts=3

Expand Down
2 changes: 0 additions & 2 deletions build/root/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,11 @@ bazel-test:
@echo "$$BAZEL_TEST_HELP_INFO"
else
# //hack:verify-all is a manual target.
# We don't want to build any of the release artifacts when running tests.
# Some things in vendor don't build due to empty target lists for cross-platform rules.
bazel-test:
bazel test --config=unit -- \
//... \
//hack:verify-all \
-//build/... \
-//vendor/...
endif

Expand Down

0 comments on commit e34a061

Please sign in to comment.