From 01118c957967f3f771899ad495221f2fc844b2c0 Mon Sep 17 00:00:00 2001 From: Joe Nelson Date: Fri, 3 Oct 2014 21:44:30 -0700 Subject: [PATCH] Use cached cabal sandbox and add a linting step --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 68b456283..538057378 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,12 @@ before_install: - travis_retry sudo apt-get update - travis_retry sudo apt-get install --force-yes happy-1.19.3 alex-3.1.3 - export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.3/bin:$PATH -before_script: - - cabal configure --enable-tests - - cabal build +install: + - curl http://bin.begriffs.com/dbapi/cabal-sandbox.tar.xz | tar xJ + - chmod a+x .cabal-sandbox/bin/* + - cabal sandbox init + - cabal install --enable-test --dependencies-only + - cabal install --enable-test script: - cabal test --show-details=always --test-options="--color" + - .cabal-sandbox/bin/hlint src/*.hs test/**/*.hs