Skip to content

Commit

Permalink
Add --test-command option to test installation
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Sep 7, 2013
1 parent 09d534d commit f2be719
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changes/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
--skip-changelog For the release task: should the changelog be generated
and committed?
--tox Use tox instead of nosetests
--test-command=<cmd> Command to use to test the newly installed package
--debug Debug output.
The commands do the following:
Expand Down Expand Up @@ -277,6 +278,9 @@ def install(arguments):
'%s/bin/python' % tmp_dir
)
log.info('Successfully installed %s sdist', app_name)
if arguments['--test-command']:
result = execute(arguments['--test-command'].split(' '), dry_run=dry_run)
log.info('test result: %s', result)
except:
log.info('Error installing %s sdist', app_name)

Expand Down

0 comments on commit f2be719

Please sign in to comment.