2016-04-01 14:47:24 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-08-11 16:53:46 +02:00
|
|
|
set -o nounset
|
2016-04-01 14:47:24 +02:00
|
|
|
set -o errexit
|
2016-08-11 16:53:46 +02:00
|
|
|
set -o verbose
|
2016-04-01 14:47:24 +02:00
|
|
|
|
2016-08-11 16:53:46 +02:00
|
|
|
export PATH=$(stack path --bin-path):$PATH
|
|
|
|
|
|
|
|
stack install cabal-install
|
|
|
|
cabal update
|
|
|
|
|
|
|
|
for package in $(cat sources.txt) ; 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
|