2016-04-01 14:47:24 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
|
2016-05-13 12:03:45 +02:00
|
|
|
if [ -n "$STACK_YAML" ]; then
|
|
|
|
stack test --dry-run
|
|
|
|
fi
|
|
|
|
|
2016-04-01 14:48:03 +02:00
|
|
|
for package in $(cat sources.txt) doc/tutorial ; do
|
2016-04-01 14:47:24 +02:00
|
|
|
echo testing $package
|
|
|
|
pushd $package
|
|
|
|
tinc
|
2016-04-18 12:07:23 +02:00
|
|
|
cabal configure --enable-tests --disable-optimization --ghc-options='-Werror'
|
2016-04-01 14:47:24 +02:00
|
|
|
cabal build
|
|
|
|
cabal test
|
|
|
|
popd
|
|
|
|
done
|