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 --without test option #247

Open
karenetheridge opened this issue Nov 13, 2018 · 1 comment
Open

Support --without test option #247

karenetheridge opened this issue Nov 13, 2018 · 1 comment

Comments

@karenetheridge
Copy link
Contributor

It looks like all that is needed is to add a few lines in Carton::Builder::groups, right where the comment says "TODO support --without test".

This would allow for a much leaner installation, e.g. in production environments where we can skip requirements only needed for testing.

@chazmcgarvey
Copy link

Lame Dockerfile workaround:

COPY cpanfile* ./
RUN sed -i -e 's/^test_requires/author_requires/' cpanfile
RUN carton install --deployment --without=develop && rm -rf /root/.cpanm

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

No branches or pull requests

2 participants