Merge pull request #50 from begriffs/ci-cache

Use a cached cabal sandbox
This commit is contained in:
Joe Nelson
2014-10-03 22:56:55 -07:00
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -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
+1 -1
View File
@@ -63,7 +63,7 @@ spec = around dbWithSchema $ do
cs newRole `shouldBe` role
checkPass (cs encryptedPass) pass `shouldBe` True
it "will not add a user with an unknown role" $ \conn -> do
it "will not add a user with an unknown role" $ \conn ->
addUser user pass "not-a-real-role" conn `shouldThrow` \e ->
take 2 (seState e) == "23" --integrity constraint violation