;ci: give up on bin/ compilation tests for now (#1453)

They need more work to become CI-ready.
Contributors can run them locally with "make functest".
This commit is contained in:
Simon Michael 2021-01-12 15:00:13 -08:00
parent 22ce25227b
commit 93bf6cf299
3 changed files with 18 additions and 26 deletions

View File

@ -217,8 +217,9 @@ jobs:
run: | run: |
export PATH=~/.local/bin:$PATH export PATH=~/.local/bin:$PATH
COLUMNS=80 $stack exec -- shelltest --execdir -j16 hledger/test -x /_ -x /addons COLUMNS=80 $stack exec -- shelltest --execdir -j16 hledger/test -x /_ -x /addons
# XXX run the bin/ func tests corresponding to the GHC version enabled above, only, for now # XXX run the bin/ func tests corresponding to the GHC version enabled above, only
COLUMNS=80 $stack exec -- shelltest --execdir -j16 bin/_scripts8.2.test # XXX it's actually too hard to make this reliable for CI right now
# COLUMNS=80 $stack exec -- shelltest --execdir -j16 bin/_scripts8.2.test
- name: Test haddock generation - name: Test haddock generation
env: env:

View File

@ -1,14 +1,5 @@
# Functional tests for the add-on scripts in this directory. # Functional tests for the add-on scripts in this directory.
# Keep synced: compile.sh, scripts*.test, hledger-*.hs ... # See scripts.test.
# Check that these ones still compile with this version of hledger.
# stdout and exit code are ignored for cleaner failure output.
#
# The tests below are hard coded to one GHC version.
# See also scriptsX.Y.test, used by our CI workflows which run other GHC versions
# (so they don't install and build for a whole extra GHC version).
#
# $ ./compile.sh >/dev/null
$ stack --stack-yaml ../stack8.2.yaml ghc hledger-balance-as-budget.hs >/dev/null || true $ stack --stack-yaml ../stack8.2.yaml ghc hledger-balance-as-budget.hs >/dev/null || true
$ stack --stack-yaml ../stack8.2.yaml ghc hledger-check-fancyassertions.hs >/dev/null || true $ stack --stack-yaml ../stack8.2.yaml ghc hledger-check-fancyassertions.hs >/dev/null || true
$ stack --stack-yaml ../stack8.2.yaml ghc hledger-check-tagfiles.hs >/dev/null || true $ stack --stack-yaml ../stack8.2.yaml ghc hledger-check-tagfiles.hs >/dev/null || true

View File

@ -1,18 +1,18 @@
# Functional tests for the add-on scripts in this directory. # Functional tests for the add-on scripts in this directory.
# Keep synced: compile.sh, scripts*.test, hledger-*.hs ... # Keep synced: compile.sh, scripts*.test, hledger-*.hs..
# Check that these ones still compile with this version of hledger. # Check that these ones still compile with this version of hledger.
# stdout and exit code are ignored for cleaner failure output. # stdout and exit code are ignored for cleaner failure output.
# # XXX But installing deps can also generate stderr, causing these to fail.
# The tests below are hard coded to one GHC version. # XXX These tests are hard coded to one GHC version.
# See also scriptsX.Y.test, used by our CI workflows which run other GHC versions # See also _scriptsX.Y.test, used by CI workflows with other GHC versions
# (so they don't install and build for a whole extra GHC version). # to avoid installing and building for multiple GHCs.
# # XXX it's actually too hard to make this reliable for CI right now.
# $ ./compile.sh >/dev/null # Maybe still useful for running locally with "make functest".
$ stack ghc hledger-balance-as-budget.hs >/dev/null || true $ stack ghc hledger-balance-as-budget.hs >/dev/null || true
$ stack ghc hledger-check-fancyassertions.hs >/dev/null || true $ stack ghc hledger-check-fancyassertions.hs >/dev/null || true
$ stack ghc hledger-check-tagfiles.hs >/dev/null || true $ stack ghc hledger-check-tagfiles.hs >/dev/null || true
$ stack ghc hledger-combine-balances.hs >/dev/null || true $ stack ghc hledger-combine-balances.hs >/dev/null || true
$ stack ghc --package string-qq hledger-print-location.hs >/dev/null || true $ stack ghc --package string-qq hledger-print-location.hs >/dev/null || true
$ stack ghc --package string-qq hledger-smooth.hs >/dev/null || true $ stack ghc --package string-qq hledger-smooth.hs >/dev/null || true
$ stack ghc --package string-qq hledger-swap-dates.hs >/dev/null || true $ stack ghc --package string-qq hledger-swap-dates.hs >/dev/null || true