|
1 | 1 | #!/bin/sh |
2 | | -uv tool install "git+https://github.com/scijava/pombast.git" |
| 2 | +# CI orchestrator for the status dashboard: fetch the most recently published |
| 3 | +# smelt.json, regenerate the status/badges/team reports from it, and publish |
| 4 | +# them to status.scijava.org. The report generation itself lives in |
| 5 | +# bin/report.sh so it can be run outside CI too. |
| 6 | +set -e |
3 | 7 |
|
4 | 8 | # Pull the most recently published smelt results so that `pombast status` can |
5 | 9 | # classify each available version bump by its bytecode-floor blast radius |
6 | 10 | # (flat / local / cascading / excluded). Read straight from the gh-pages branch |
7 | 11 | # rather than https://status.scijava.org/, so we pick up a freshly committed |
8 | 12 | # smelt.json immediately instead of waiting on the asynchronous Pages deploy. |
9 | 13 | # |
10 | | -# Best-effort: if smelt.json is not published yet (or the fetch fails), status |
11 | | -# still runs -- just without the bytecode classification overlay. |
12 | | -smelt_arg="" |
| 14 | +# Best-effort: if smelt.json is not published yet (or the fetch fails), |
| 15 | +# bin/report.sh still generates the reports -- just without the classification. |
13 | 16 | smelt_url=https://raw.githubusercontent.com/scijava/status.scijava.org/gh-pages/smelt.json |
14 | | -if curl -fsSLO "$smelt_url"; then |
15 | | - smelt_arg="--smelt smelt.json" |
16 | | -else |
| 17 | +mkdir -p target/pombast |
| 18 | +curl -fsSL -o target/pombast/smelt.json "$smelt_url" || |
17 | 19 | echo "== smelt.json unavailable; running status without classification ==" |
18 | | -fi |
19 | 20 |
|
20 | | -pombast status $smelt_arg . |
21 | | -pombast badges -o badges.json . |
22 | | -pombast team . |
23 | | -.github/publish.sh "Update status reports" index.html badges.json team.html |
| 21 | +bin/report.sh |
| 22 | + |
| 23 | +.github/publish.sh "Update status reports" \ |
| 24 | + target/pombast/index.html \ |
| 25 | + target/pombast/badges.json \ |
| 26 | + target/pombast/team.html \ |
| 27 | + target/pombast/team.json |
0 commit comments