diff --git a/.travis.yml b/.travis.yml index 9cddf7ab..929b0b13 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/travis.sh b/travis.sh new file mode 100755 index 00000000..ac028050 --- /dev/null +++ b/travis.sh @@ -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