-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexercise.sh
executable file
·39 lines (27 loc) · 1.09 KB
/
exercise.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
export MSYS_NO_PATHCONV=1
export MSYS2_ARG_CONV_EXCL="*"
bazel build '...'
# No test for this one yet.
# bazel test '...' --test_verbose_timeout_warnings --test_output=errors
# In separate windows:
# bazel run :frontend
# bazel run :service
# visit http://localhost:8080
# The :frontend above is an alias, here is the more verbose invocation:
# bazel run //frontend:groceries
# Or, to run one of the services directly:
# Build the deployable JAR:
bazel build :service-deploy
# Run it:
# java -jar bazel-bin/service/src/main/java/com/oasisdigital/grocery/grocery_deploy.jar
# There is a way to retrieve that filename programmaticlaly with "bazel aquery", beyond
# the scope of this introduction. Also, in a real build process we would copy the desired
# See a list of targets:
# bazel query '...'
# See a diagram of the those tarage (on a Mac with graphviz installed)
# bazel query --output=graph '...' | dot -Tpng >temp.png ; open temp.png
# This is extraordinarily helpful in projects that require (correct,
# i.e. generated) documentation of how things work.
# output artifacts onward.