Allow skipping of tests during release

sometimes ya just gotta do it
This commit is contained in:
Lance Edgar 2018-07-19 17:41:17 -05:00
parent fba7c5f978
commit 6b3e645c12

View file

@ -32,10 +32,12 @@ from invoke import task
@task
def release(ctx):
def release(ctx, skip_tests=False):
"""
Release a new version of 'Tailbone'.
"""
ctx.run('tox')
if not skip_tests:
ctx.run('tox')
shutil.rmtree('Tailbone.egg-info')
ctx.run('python setup.py sdist --formats=gztar upload')