Allow skipping tests when building new release
This commit is contained in:
parent
10f879dfc8
commit
8b38a14f31
5
tasks.py
5
tasks.py
|
@ -37,11 +37,12 @@ exec(open(os.path.join(here, 'rattail', '_version.py')).read())
|
|||
|
||||
|
||||
@task
|
||||
def release(ctx):
|
||||
def release(ctx, skip_tests=False):
|
||||
"""
|
||||
Release a new version of `rattail`.
|
||||
"""
|
||||
ctx.run('tox')
|
||||
if not skip_tests:
|
||||
ctx.run('tox')
|
||||
shutil.rmtree('rattail.egg-info')
|
||||
ctx.run('python setup.py sdist --formats=gztar')
|
||||
ctx.run('twine upload dist/rattail-{}.tar.gz'.format(__version__))
|
||||
|
|
Loading…
Reference in a new issue