Add flag to skip tests when pushing a release
hopefully this doesn't get used much, but currently am having a major headache when running python 3.7 tests via tox. probably should just drop support for that one ASAP..
This commit is contained in:
parent
38e0eca4bc
commit
1545269ae4
5
tasks.py
5
tasks.py
|
@ -14,11 +14,12 @@ exec(open(os.path.join(here, 'src', 'wuttjamaican', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def release(c):
|
def release(c, skip_tests=False):
|
||||||
"""
|
"""
|
||||||
Release a new version of WuttJamaican
|
Release a new version of WuttJamaican
|
||||||
"""
|
"""
|
||||||
c.run('tox')
|
if not skip_tests:
|
||||||
|
c.run('tox')
|
||||||
|
|
||||||
# rebuild local tar.gz file for distribution
|
# rebuild local tar.gz file for distribution
|
||||||
if os.path.exists('WuttJamaican.egg-info'):
|
if os.path.exists('WuttJamaican.egg-info'):
|
||||||
|
|
Loading…
Reference in a new issue