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

Support building the sdist and upload tarball #3187

Merged
merged 16 commits into from
Jun 11, 2017

Conversation

martin-kolinek
Copy link
Contributor

This adds the option --test-tarball to stack sdist and stack upload. When this option is specified, the tarball is extracted, and tests are executed as part of the process. This should implement part of #717.

The implementation works by building the extracted tarball using the default build options. The package directory in the BuildConfig used for building and testing is replaced by the location of the extracted tarball.

There is currently no way to specify build options.

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary.

The added tests work with packages which fail to build/test because the build depends on a file which is not packaged into the resulting tarball.

@martin-kolinek martin-kolinek changed the title Support building the tarball from sdist and upload Support building the sdist and upload tarball May 24, 2017
@decentral1se
Copy link
Member

decentral1se commented May 29, 2017

Holy moly! I've been wanting this feature since a year now 😄 Don't have time to look at this now but hopefully someone will stop by soon. Nice one for this work! (CI Failure was just an OOM it seems!)

@mgsloan
Copy link
Contributor

mgsloan commented Jun 11, 2017

Awesome, thanks! Implementation looks good, refactors appreciated too.

@mgsloan mgsloan merged commit 62220ce into commercialhaskell:master Jun 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants