move travis script into a file
This commit is contained in:
parent
2367ee9965
commit
94982c15dc
2 changed files with 14 additions and 1 deletions
|
@ -25,7 +25,7 @@ install:
|
||||||
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
||||||
|
|
||||||
script:
|
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:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
|
13
travis.sh
Executable file
13
travis.sh
Executable 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
|
Loading…
Reference in a new issue