comparison make.py @ 2871:45d3cadb38c3

enhance make.py, pass options to pytest, improve docs
author RogerHaase <haaserd@gmail.com>
date Tue, 06 Jan 2015 10:37:23 -0700
parents 9c036e6c2265
children a6bb853c740b
comparison
equal deleted inserted replaced
2870:1874775f8903 2871:45d3cadb38c3
94 new-wiki create empty wiki 94 new-wiki create empty wiki
95 sample create wiki and load sample data 95 sample create wiki and load sample data
96 restore * create wiki and restore wiki/backup.moin *option, specify file 96 restore * create wiki and restore wiki/backup.moin *option, specify file
97 import <dir> import a moin 1.9 wiki/data instance from <dir> 97 import <dir> import a moin 1.9 wiki/data instance from <dir>
98 98
99 run run built-in wiki server 99 run * run built-in wiki server *options (--port 8081)
100 backup * roll 3 prior backups and create new backup *option, specify file 100 backup * roll 3 prior backups and create new backup *option, specify file
101 101
102 css run Stylus and lessc to update theme CSS files 102 css run Stylus and lessc to update theme CSS files
103 tests run tests, output goes to pytest.txt and pytestpep8.txt 103 tests * run tests, output to pytest.txt *options (-v -k my_test)
104 coding-std correct scripts that taint the repository with trailing spaces.. 104 coding-std correct scripts that taint the repository with trailing spaces..
105 api update moin api docs (files are under hg version control) 105 api update moin api docs (files are under hg version control)
106 dist delete wiki data, then create distribution archive in dist/ 106 dist delete wiki data, then create distribution archive in dist/
107 107
108 del-all same as running the 4 del-* commands below 108 del-all same as running the 4 del-* commands below
392 print 'Error: Basic theme CSS files update failed, see error messages above.' 392 print 'Error: Basic theme CSS files update failed, see error messages above.'
393 393
394 def cmd_tests(self, *args): 394 def cmd_tests(self, *args):
395 """run tests, output goes to pytest.txt and pytestpep8.txt""" 395 """run tests, output goes to pytest.txt and pytestpep8.txt"""
396 print 'Running tests... output written to {0}.'.format(PYTEST) 396 print 'Running tests... output written to {0}.'.format(PYTEST)
397 command = '{0}py.test --pep8 > {1} 2>&1'.format(ACTIVATE, PYTEST) 397 command = '{0}py.test --pep8 > {1} {2} 2>&1'.format(ACTIVATE, PYTEST, ' '.join(args))
398 result = subprocess.call(command, shell=True) 398 result = subprocess.call(command, shell=True)
399 print 'Summary message from {0} is shown below. Do "{1} log pytest" to see complete log.'.format(PYTEST, M) 399 print 'Summary message from {0} is shown below. Do "{1} log pytest" to see complete log.'.format(PYTEST, M)
400 search_for_phrase(PYTEST) 400 search_for_phrase(PYTEST)
401 401
402 def cmd_coding_std(self, *args): 402 def cmd_coding_std(self, *args):