Skip to content

Commit 7d3ca90

Browse files
committed
Add -e flag to build images essential for testing on local gimletlet and lurch-attached systems.
1 parent 85f3360 commit 7d3ca90

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/build-all

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ usage() {
1414
[[ -n "$msg" ]] && echo "$msg"
1515
echo "Usage: $PROG [options] [args]"
1616
echo ' -c # Continue to next app.toml on build errors'
17+
echo ' -e # Just build the app.toml files that are essential for testing'
1718
echo ' -h # Help (this message)'
1819
echo ' -n # No action, just list app.toml files to process.'
1920
echo ' -r # Remove previous log files (rebuild everything)'
@@ -35,10 +36,12 @@ STOP_ON_ERROR=true
3536
NOOP=false
3637
REMOVE_PREV_LOG=false
3738
SKIP_UNSUPPORTED=true
39+
ESSENTIAL=false
3840

39-
while getopts "chnru" opt; do
41+
while getopts "chenru" opt; do
4042
case $opt in
4143
c) STOP_ON_ERROR=false;;
44+
e) ESSENTIAL=true;;
4245
h) usage 0;;
4346
n) NOOP=true;;
4447
r) REMOVE_PREV_LOG=true;;
@@ -84,7 +87,10 @@ echo app/gimlet/rev-c-lab.toml
8487
echo app/sidecar/rev-b-lab.toml
8588
echo app/psc/rev-b-dev.toml
8689
# Everything except 'Cargo.toml'.
87-
find "app" -name '*.toml' ! -name Cargo.toml | sort
90+
if ! $ESSENTIAL
91+
then
92+
find "app" -name '*.toml' ! -name Cargo.toml | sort
93+
fi
8894
)
8995

9096
declare -A -g SEEN

0 commit comments

Comments
 (0)