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