From bd5943135e103e56f09e8a7fbd86b03670073dc9 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Tue, 24 Nov 2015 11:22:50 +0200 Subject: [PATCH] Travis: switch to Stack (to avoid the file not found errors from cabal) --- .travis-setup.sh | 10 --------- .travis.yml | 57 +++++++++++++++++++++++++----------------------- 2 files changed, 30 insertions(+), 37 deletions(-) delete mode 100755 .travis-setup.sh diff --git a/.travis-setup.sh b/.travis-setup.sh deleted file mode 100755 index e694e093..00000000 --- a/.travis-setup.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -set -eux - -mkdir -p $HOME/.cabal -cat > $HOME/.cabal/config < /dev/null || echo '?')]" - - travis_retry cabal update - - travis_retry curl -L http://download.fpcomplete.com/michael/cabal-meta.tar.gz > cabal-meta.tar.gz - - mkdir -p $HOME/.cabal/bin - - tar zxfv cabal-meta.tar.gz -C $HOME/.cabal/bin - - cabal install alex happy - -# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail. -script: - - cabal-meta install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls - - cabal-meta install --run-tests +# Caching so the next build will be fast too. +cache: + directories: + - $HOME/.stack