travis: require warning-free builds of addons #520

This commit is contained in:
Simon Michael 2017-03-22 14:18:29 +00:00
parent c1103913b9
commit a4a3039fe9
2 changed files with 5 additions and 4 deletions

View File

@ -74,8 +74,9 @@ script:
# build all packages, ensuring no warnings, no haddock failures, all package test suites passing # build all packages, ensuring no warnings, no haddock failures, all package test suites passing
- stack +RTS -N2 -RTS build --ghc-options=-Werror --haddock --no-haddock-deps --test - stack +RTS -N2 -RTS build --ghc-options=-Werror --haddock --no-haddock-deps --test
# install hledger addon deps, build addons (TODO: require successful warning-free builds) # install hledger addon deps, build addons ensuring no warnings
- bin/compile.sh # TODO: prevent reinstallation of addon-deps
- sh -e bin/compile.sh
# run functional tests # run functional tests
- make functest - make functest

View File

@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
# helper script, compiles all addons in this directory # Run this script to compile all addons in this directory.
cd "$(dirname "$0")" cd "$(dirname "$0")"
echo "building dependencies" echo "building dependencies"
stack build hledger stack build hledger
stack install Chart Chart-diagrams colour Diff here # additional deps needed by addons stack install Chart Chart-diagrams colour Diff here # additional deps needed by addons
echo "building add-on commands" echo "building add-on commands"
for f in hledger-*.hs; do stack ghc $f; done for f in hledger-*.hs; do stack ghc -- -Wall -Werror $f; done
echo "add-on commands available:" echo "add-on commands available:"
ls -F hledger-* | grep -vE '\.(hs|hi|o|dyn_hi|dyn_o)' ls -F hledger-* | grep -vE '\.(hs|hi|o|dyn_hi|dyn_o)'