mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	ADD travis-configuration-file and comments in setup.py
This commit is contained in:
		
							
								
								
									
										10
									
								
								.travis.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.travis.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | language: python | ||||||
|  | sudo: false | ||||||
|  | cache: pip | ||||||
|  | before_install: | ||||||
|  |     - pip install codecov | ||||||
|  | after_success: | ||||||
|  |     - codecov | ||||||
|  | # command to run tests | ||||||
|  | script: | ||||||
|  |     - tox | ||||||
							
								
								
									
										4
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								setup.py
									
									
									
									
									
								
							| @@ -10,18 +10,22 @@ def read(fname): | |||||||
|     return open(os.path.join(os.path.dirname(__file__), fname)).read() |     return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||||||
|  |  | ||||||
| class Tox(TestCommand): | class Tox(TestCommand): | ||||||
|  |     """proxy class that enables tox to be run with setup.py test""" | ||||||
|     user_options = [('tox-args=', 'a', "Arguments to pass to tox")] |     user_options = [('tox-args=', 'a', "Arguments to pass to tox")] | ||||||
|  |  | ||||||
|     def initialize_options(self): |     def initialize_options(self): | ||||||
|  |         """initialize the user-options""" | ||||||
|         TestCommand.initialize_options(self) |         TestCommand.initialize_options(self) | ||||||
|         self.tox_args = None |         self.tox_args = None | ||||||
|  |  | ||||||
|     def finalize_options(self): |     def finalize_options(self): | ||||||
|  |         """finalize user-options""" | ||||||
|         TestCommand.finalize_options(self) |         TestCommand.finalize_options(self) | ||||||
|         self.test_args = [] |         self.test_args = [] | ||||||
|         self.test_suite = True |         self.test_suite = True | ||||||
|  |  | ||||||
|     def run_tests(self): |     def run_tests(self): | ||||||
|  |         """run tox and pass on user-options""" | ||||||
|         #import here, cause outside the eggs aren't loaded |         #import here, cause outside the eggs aren't loaded | ||||||
|         import tox |         import tox | ||||||
|         import shlex |         import shlex | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Patrick Kanzler
					Patrick Kanzler