Skip to content

Commit

Permalink
Separate build scripts that runs samples vs. regular tests.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 522448689
  • Loading branch information
gkdn authored and copybara-github committed Apr 6, 2023
1 parent 209a370 commit 2545a7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
5 changes: 0 additions & 5 deletions build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
# Script that can be used by CI server for testing j2cl builds.
set -e

if [[ $1 == "SAMPLES" ]]; then
./build_test_samples.sh
exit 0
fi

bazel build :all {jre,transpiler,tools,junit/generator,junit/emul}/java/...

# Do a quick smoke check of integration test
Expand Down
12 changes: 7 additions & 5 deletions build_test_samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ set -e
# Build and test Hello World sample in its own workspace
(cd samples/helloworld && bazel test ...)

# Build Guava sample in its own workspace
(cd samples/guava && bazel build ...)
if [[ $1 == "CI" ]]; then
# Build Guava sample in its own workspace
(cd samples/guava && bazel build ...)

# Build Wasm sample in its own workspace
# Note that since binaryen dep is not available, we only build the wat file.
(cd samples/wasm && bazel build src/main/java/com/google/j2cl/samples/wasm:app.wat)
# Build Wasm sample in its own workspace
# Note that since binaryen dep is not available, we only build the wat file.
(cd samples/wasm && bazel build src/main/java/com/google/j2cl/samples/wasm:app.wat)
fi

0 comments on commit 2545a7d

Please sign in to comment.