servant/scripts/ci-cron.sh

21 lines
359 B
Bash
Raw Permalink Normal View History

2016-04-01 14:47:24 +02:00
#!/usr/bin/env bash
set -o nounset
2016-04-01 14:47:24 +02:00
set -o errexit
set -o verbose
2016-04-01 14:47:24 +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