Skip to content

Commit f8bbc8f

Browse files
authored
chore: fix build/test scripts in bin directory (#149)
1 parent 16cf1eb commit f8bbc8f

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

bin/bazel-build

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@ set -e
44

55
cd "$(dirname "$0")"/..
66

7-
bazelisk build dd_trace_cpp
7+
if [ "$1" = '--absl' ]; then
8+
rcfile=.bazelrc.absl
9+
elif [ "$1" = '--std' ]; then
10+
rcfile=.bazelrc.std
11+
elif [ $# -ne 1 ]; then
12+
>&2 printf '%s: Specify one of "--absl" or "--std" build modes.\n' "$0"
13+
exit 1
14+
fi
15+
16+
bazelisk --bazelrc="$rcfile" build dd_trace_cpp

bin/check

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ set -e
99
cd "$(dirname "$0")"/..
1010

1111
bin/format --dry-run -Werror
12+
1213
bin/test
13-
bin/bazel-build
14+
15+
if [ "$1" != '--no-bazel' ]; then
16+
# Specifying two different build configurations in bazel seems to trigger a
17+
# clean build each time :(
18+
bin/bazel-build --absl
19+
bin/bazel-build --std
20+
fi
21+
1422
find bin/ -executable -type f -print0 | xargs -0 shellcheck

0 commit comments

Comments
 (0)