Skip to content

Commit ee46af8

Browse files
committed
examples/basic: rework
1 parent 189775d commit ee46af8

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

examples/basic/.bazelrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Enable logging rc options.
2+
common --announce_rc
3+
4+
###############################################################################
5+
# Options for continuous integration.
6+
###############################################################################
7+
8+
# All build options also apply to test as described by the "Option precedence"
9+
# section in https://bazel.build/run/bazelrc#bazelrc-syntax-semantics.
10+
11+
# Note for anybody considering using --compilation_mode=opt in CI, it builds
12+
# most files twice, one PIC version for shared libraries in tests, and one
13+
# non-PIC version for binaries.
14+
build:ci --copt=-O1
15+
16+
# Show as many errors as possible.
17+
build:ci --keep_going
18+
19+
# Show test errors.
20+
test:ci --test_output=all
21+
22+
# Only show failing tests to reduce output
23+
#test:ci --test_summary=terse
24+
25+
###############################################################################
26+
# Put user-specific options in user.bazelrc
27+
# See https://bazel.build/configure/best-practices#bazelrc-file
28+
################################################################################
29+
try-import %workspace%/user.bazelrc

examples/basic/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ py_wheel(
3232

3333
py_test(
3434
name = "basic_test",
35+
size="small",
3536
srcs = ["basic_test.py"],
3637
deps = [":basic_lib"],
3738
)

0 commit comments

Comments
 (0)