Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Stack on CircleCI #476

Merged
merged 8 commits into from
Jan 29, 2016
Merged

Switch to Stack on CircleCI #476

merged 8 commits into from
Jan 29, 2016

Conversation

begriffs
Copy link
Member

The new config has a few benefits

  • Builds like we do in development
  • Removes helpers like hlint and packdeps from the cabal file and into the circle config
  • Newer stack resolver
  • More kinds of ghc warnings
  • Added checks for
    • cabal file warnings
    • haddock coverage
    • problems creating hackage tarball

override:
- stack test
- git ls-files | grep '\.l\?hs$' | xargs stack exec -- hlint -X QuasiQuotes "$@"
- stack exec -- packdeps *.cabal || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't packdeps lose a bit of it's purpose when we build with stack?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking if someone wanted to use the modules in postgrest from their own haskell project that I want to make sure they wouldn't have to hold common dependencies back at old versions. Many of our deps have constraints on their major version.

Packdeps is treated as a warning here (for instance I don't want to upgrade to aeson 10 because it has a bug).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would also be good is adding packunused to help us prune packages we no longer need. At the moment is has stack problems though.

@diogob
Copy link
Contributor

diogob commented Jan 29, 2016

Rock n'Roll 🤘

begriffs added a commit that referenced this pull request Jan 29, 2016
Switch to Stack on CircleCI
@begriffs begriffs merged commit 2057363 into master Jan 29, 2016
@begriffs begriffs deleted the stack-ci branch November 27, 2016 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants