travis: require warning-free builds of addons #520
This commit is contained in:
parent
c1103913b9
commit
a4a3039fe9
@ -74,8 +74,9 @@ script:
|
||||
|
||||
# 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
|
||||
# install hledger addon deps, build addons (TODO: require successful warning-free builds)
|
||||
- bin/compile.sh
|
||||
# install hledger addon deps, build addons ensuring no warnings
|
||||
# TODO: prevent reinstallation of addon-deps
|
||||
- sh -e bin/compile.sh
|
||||
# run functional tests
|
||||
- make functest
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
# helper script, compiles all addons in this directory
|
||||
# Run this script to compile all addons in this directory.
|
||||
cd "$(dirname "$0")"
|
||||
echo "building dependencies"
|
||||
stack build hledger
|
||||
stack install Chart Chart-diagrams colour Diff here # additional deps needed by addons
|
||||
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:"
|
||||
ls -F hledger-* | grep -vE '\.(hs|hi|o|dyn_hi|dyn_o)'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user