;tools: fix cabalfilestest; test cabal files before any hackage upload

This commit is contained in:
Simon Michael 2025-03-07 07:50:51 -10:00
parent 41e5a538b1
commit 5109a9682f
2 changed files with 4 additions and 1 deletions

View File

@ -539,7 +539,6 @@ hlinttest hlint:
# check cabal files' syntax # check cabal files' syntax
@cabalfilestest: @cabalfilestest:
just cabalfiles
(for p in $PACKAGES; do (cd $p && printf "\nchecking $p.cabal:\n" && cabal check); done \ (for p in $PACKAGES; do (cd $p && printf "\nchecking $p.cabal:\n" && cabal check); done \
&& echo $@ PASSED) || (echo $@ FAILED; false) && echo $@ PASSED) || (echo $@ FAILED; false)

View File

@ -10,6 +10,10 @@ if [[ $BRANCH =~ ^[0-9.]*-(branch|release) ]]; then
done done
echo echo
read -rp "Ok ? Press enter to confirm, ctrl-c to abort: " read -rp "Ok ? Press enter to confirm, ctrl-c to abort: "
# last chance check (would cabal upload )
for P in $PACKAGES; do
cabal check
done
for P in $PACKAGES; do for P in $PACKAGES; do
stack upload "$P" stack upload "$P"
done done