move travis script into a file
commit94982c15dc6077919b0922eddfbd8cc5835dbbab
authorSönke Hahn <soenkehahn@gmail.com>
dateFri 1 Apr 2016, 20:47 (11 years ago)
parent2367ee9
.travis.yml+1−1
@@ -25,7 +25,7 @@ install:
2525 - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
2626
2727script:
28− - 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
28+ - ./travis.sh
2929
3030cache:
3131 directories:
travis.shnew file+13
@@ -0,0 +1,13 @@
1+#!/usr/bin/env bash
2+
3+set -o errexit
4+
5+for package in $(cat sources.txt) ; do
6+ echo testing $package
7+ pushd $package
8+ tinc
9+ cabal configure --enable-tests --disable-optimization
10+ cabal build
11+ cabal test
12+ popd
13+done