move travis script into a file

This commit is contained in:
Sönke Hahn 2016-04-01 20:47:24 +08:00
parent 2367ee9965
commit 94982c15dc
2 changed files with 14 additions and 1 deletions

View file

@ -25,7 +25,7 @@ install:
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
script:
- for package in $(cat sources.txt); do (echo testing $package && cd $package && tinc && cabal configure --enable-tests --disable-optimization && cabal build && cabal test) || exit 1; done
- ./travis.sh
cache:
directories:

13
travis.sh Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -o errexit
for package in $(cat sources.txt) ; do
echo testing $package
pushd $package
tinc
cabal configure --enable-tests --disable-optimization
cabal build
cabal test
popd
done