machine:
  pre:
    - 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
    - cabal configure --enable-tests -f ci
test:
  post:
    - cabal exec hlint -- -X QuasiQuotes src/**/*.hs test/**/*.hs
    - cabal exec packdeps postgrest.cabal || true

machine:
  pre:
    - 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
test:
  post:
    - cabal exec hlint -- -X QuasiQuotes src/**/*.hs test/**/*.hs
    - cabal exec packdeps postgrest.cabal || true

Use reorder-goals in CI to make vanilla cabal work
Use reorder-goals in CI to make vanilla cabal work
