Build with stack on CI and use harsher setttings

This commit is contained in:
Joe Nelson
2016-01-27 16:12:48 -08:00
parent f3d4d1fb60
commit 55da918240
3 changed files with 24 additions and 16 deletions
+16 -11
View File
@@ -1,16 +1,21 @@
machine:
dependencies:
cache_directories:
- "~/.stack"
pre:
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
- echo 'deb http://download.fpcomplete.com/ubuntu precise main'|sudo tee /etc/apt/sources.list.d/fpco.list
- sudo apt-get update && sudo apt-get install stack -y
- createuser --superuser --no-password postgrest_test
- createdb -O postgrest_test -U ubuntu postgrest_test
ghc:
version: 7.10.1
dependencies:
override:
- cabal update
- cabal sandbox init
- cabal install --upgrade-dependencies --constraint="template-haskell installed" --dependencies-only --enable-tests --reorder-goals
- cabal configure --enable-tests -f ci
- stack setup
- stack install hlint packdeps cabal-install
test:
post:
- cabal exec hlint -- -X QuasiQuotes src/**/*.hs test/**/*.hs
- cabal exec packdeps postgrest.cabal || true
override:
- stack test
- git ls-files | grep '\.l\?hs$' | xargs stack exec -- hlint -X QuasiQuotes "$@"
- stack exec -- packdeps *.cabal || true
- stack exec -- cabal check
- stack haddock --coverage
- stack sdist
+1 -1
View File
@@ -30,7 +30,7 @@ executable postgrest
main-is: PostgREST/Main.hs
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes, LambdaCase
default-language: Haskell2010
build-depends: aeson >= 0.8
build-depends: aeson >= 0.8 && < 0.10
, base >= 4.8 && < 5
, bytestring
, case-insensitive
+7 -4
View File
@@ -1,8 +1,11 @@
flags: {}
packages:
- '.'
resolver: lts-5.0
extra-deps:
- hasql-0.19.3.3
- Ranged-sets-0.3.0
- packdeps-0.4.2.1
resolver: lts-5.0
# Almost all warnings, plus minimal-imports for packunused
ghc-options:
postgrest: -ddump-minimal-imports -Werror -Wall -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -fwarn-monomorphism-restriction -fwarn-auto-orphans -fwarn-missing-local-sigs -fwarn-missing-exported-sigs -fwarn-missing-import-lists -fwarn-identities
packages:
- '.'