haskell-relational-record/travis-CI/stack/script.sh
2017-02-01 17:59:45 +09:00

21 lines
289 B
Bash
Executable File

#!/bin/sh
set -e
. ./travis-CI/dirs.list
set -x
script_build() {
STACK_YAML=stack-travis.yaml stack build
STACK_YAML=stack-travis.yaml stack test --coverage
}
if [ x"$dirs" = x ]; then
script_build
else
for d in $dirs; do
( cd $d && script_build )
done
fi