From bd5943135e103e56f09e8a7fbd86b03670073dc9 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Tue, 24 Nov 2015 11:22:50 +0200 Subject: [PATCH 1/2] 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 From 2bce53a682888f473a4f67fd47cc2519e341ab1d Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Tue, 24 Nov 2015 12:27:44 +0200 Subject: [PATCH 2/2] Add wai-app-static extra-dep --- stack.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stack.yaml b/stack.yaml index 96ea6a46..f32b201f 100644 --- a/stack.yaml +++ b/stack.yaml @@ -13,3 +13,7 @@ packages: - ./yesod - ./yesod-eventsource - ./yesod-websockets + +# Needed for LTS 2 +extra-deps: +- wai-app-static-3.1.3