Open karenetheridge opened 5 years ago
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.
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
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.