Seed the haskell contrib with `StackDistribution`.

Review Request #3095 - Created Nov. 7, 2015 and submitted

Information
John Sirois
pants
jsirois/stack/distribution
2520
Reviewers
pants-reviews
stuhood
This supports the first support for haskell builds via the stack tool in
progress here:
  https://rbcommons.com/s/twitter/r/2975/

 contrib/haskell/src/python/pants/__init__.py                                                  |   1 +
 contrib/haskell/src/python/pants/contrib/__init__.py                                          |   1 +
 contrib/haskell/src/python/pants/contrib/haskell/__init__.py                                  |   0
 contrib/haskell/src/python/pants/contrib/haskell/subsystems/BUILD                             |  15 +++++
 contrib/haskell/src/python/pants/contrib/haskell/subsystems/__init__.py                       |   0
 contrib/haskell/src/python/pants/contrib/haskell/subsystems/stack_distribution.py             | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++
 contrib/haskell/tests/python/pants_test/__init__.py                                           |   1 +
 contrib/haskell/tests/python/pants_test/contrib/__init__.py                                   |   1 +
 contrib/haskell/tests/python/pants_test/contrib/haskell/__init__.py                           |   0
 contrib/haskell/tests/python/pants_test/contrib/haskell/subsystems/BUILD                      |  12 ++++
 contrib/haskell/tests/python/pants_test/contrib/haskell/subsystems/__init__.py                |   0
 contrib/haskell/tests/python/pants_test/contrib/haskell/subsystems/test_stack_distribution.py |  47 ++++++++++++++++
 12 files changed, 231 insertions(+)

Locally green:
rm -rf ~/.cache/pants/bin/stack/ && ./pants test contrib/haskell/tests/::

That bootstraps stack and uses is in a unit test to sanity check version.

CI went green here:
https://travis-ci.org/pantsbuild/pants/builds/89884183

Issues

  • 0
  • 2
  • 0
  • 2
Description From Last Updated
John Sirois
John Sirois
Gabriel Gonzalez
John Sirois
John Sirois
John Sirois
Stu Hood
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...