Changeset - 8b38a14f31e3
[Not reviewed]
0 1 0
Lance Edgar (lance) - 4 years ago 2020-09-19 16:14:47
lance@edbob.org
Allow skipping tests when building new release
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
tasks.py
Show inline comments
 
@@ -28,20 +28,21 @@ from __future__ import unicode_literals, absolute_import
 

	
 
import os
 
import shutil
 

	
 
from invoke import task
 

	
 

	
 
here = os.path.abspath(os.path.dirname(__file__))
 
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__))
0 comments (0 inline, 0 general)