Skip to content

Commit

Permalink
added env PERL_MM_NONINTERACTIVE and AUTOMATED_TESTING to cpanm installs
Browse files Browse the repository at this point in the history
  • Loading branch information
dexterbt1 committed Nov 28, 2012
1 parent 8dbaa78 commit 1b4ac20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cuisine_sweet/ensure/cpan_module.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
""" """


import os import os
import pipes
import cuisine import cuisine


from fabric.api import run, puts, env from fabric.api import run, puts, env, prefix
from fabric.colors import green, blue from fabric.colors import green, blue
from cuisine_sweet.utils import completed_ok from cuisine_sweet.utils import completed_ok


Expand Down Expand Up @@ -40,7 +41,8 @@ def _do_install(module_name, home='/tmp', cpanm='/tmp/.deploy/bin/cpanm', source
mod = source mod = source
locallib_base = os.path.join(home, locallib) locallib_base = os.path.join(home, locallib)
opts = '-l %s' % locallib_base opts = '-l %s' % locallib_base
run('%s %s %s' % (cpanm, opts, mod)) with prefix('export AUTOMATED_TESTING=1 PERL_MM_NONINTERACTIVE=1'):
run('%s %s %s' % (cpanm, opts, mod))




def _prepare_environment(): def _prepare_environment():
Expand Down

0 comments on commit 1b4ac20

Please sign in to comment.