Skip to content

Commit 02f7714

Browse files
committed
CI: do the post-build cache TLC even if melt fails
1 parent b463aa3 commit 02f7714

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
2-
set -e
3-
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh
4-
sh ci-build.sh
2+
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh &&
3+
sh ci-build.sh || { echo "Maven build failed. Skipping melting pot tests."; exit 1; }
54

65
# Helper method to get the last cache modified date as seconds since epoch
76
last_cache_modified () {
@@ -20,6 +19,7 @@ fi
2019

2120
# run melting-pot
2221
tests/run.sh
22+
meltResult=$?
2323

2424
# Record the last time of cache modification after running melting-pot
2525
if [ -f "~/.cache/scijava/melting-pot" ]; then
@@ -32,3 +32,5 @@ if [ "$cache_modified_post" -gt "$cache_modified_pre" ]; then
3232
else
3333
echo "update-cache=false" >> $GITHUB_ENV
3434
fi
35+
36+
exit $meltResult

0 commit comments

Comments
 (0)