added gitlab ci
This commit is contained in:
		
							parent
							
								
									9241593527
								
							
						
					
					
						commit
						1a661476dd
					
				
					 2 changed files with 23 additions and 4 deletions
				
			
		
							
								
								
									
										22
									
								
								.gitlab-ci.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.gitlab-ci.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| image: python | ||||
| 
 | ||||
| test:pylama: | ||||
|     stage: test | ||||
|     only: | ||||
|         - master | ||||
|         - develop | ||||
|     before_script: | ||||
|         - if test -r requirements.txt; then pip install -r requirements.txt; fi | ||||
|     script: | ||||
|         if test -x "$(which pylama)"; then pylama *.py; fi | ||||
| 
 | ||||
| test:pytest: | ||||
|     stage: test | ||||
|     only: | ||||
|         - master | ||||
|         - develop | ||||
|     before_script: | ||||
|         - if test -r requirements.txt; then pip install -r requirements.txt; fi | ||||
|     script: | ||||
|         if test -x "$(which pytest)"; then pytest .; fi | ||||
| 
 | ||||
|  | @ -1,14 +1,11 @@ | |||
| [pylama] | ||||
| format = pylint | ||||
| linters = mccabe,pep257,pydocstyle,pep8,pycodestyle,pyflakes,pylint,isort | ||||
| linters = eradicate,isort,mccabe,mypy,pycodestyle,pydocstyle,pyflakes,pylint | ||||
| ignore = D203 | ||||
| skip=.env/* | ||||
| 
 | ||||
| [pylama:pycodestyle] | ||||
| max_line_length = 120 | ||||
| 
 | ||||
| [pylama:pep8] | ||||
| max_line_length = 120 | ||||
| 
 | ||||
| [pylama:pylint] | ||||
| max_line_length = 120 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue