Use cached cabal sandbox and add a linting step
This commit is contained in:
+7
-3
@@ -9,8 +9,12 @@ before_install:
|
|||||||
- travis_retry sudo apt-get update
|
- travis_retry sudo apt-get update
|
||||||
- travis_retry sudo apt-get install --force-yes happy-1.19.3 alex-3.1.3
|
- 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
|
- export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.3/bin:$PATH
|
||||||
before_script:
|
install:
|
||||||
- cabal configure --enable-tests
|
- curl http://bin.begriffs.com/dbapi/cabal-sandbox.tar.xz | tar xJ
|
||||||
- cabal build
|
- chmod a+x .cabal-sandbox/bin/*
|
||||||
|
- cabal sandbox init
|
||||||
|
- cabal install --enable-test --dependencies-only
|
||||||
|
- cabal install --enable-test
|
||||||
script:
|
script:
|
||||||
- cabal test --show-details=always --test-options="--color"
|
- cabal test --show-details=always --test-options="--color"
|
||||||
|
- .cabal-sandbox/bin/hlint src/*.hs test/**/*.hs
|
||||||
|
|||||||
Reference in New Issue
Block a user