From 94982c15dc6077919b0922eddfbd8cc5835dbbab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Hahn?= Date: Fri, 1 Apr 2016 20:47:24 +0800 Subject: [PATCH] move travis script into a file --- .travis.yml | 2 +- travis.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 travis.sh 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