mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	Fix codecov on Travis CI
The coverage report needs to be explicitly created with arguments passed in to pytest-cov
This commit is contained in:
		
							parent
							
								
									6fb96e93ef
								
							
						
					
					
						commit
						739d3892c5
					
				| 
						 | 
					@ -31,4 +31,4 @@ script:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
after_success:
 | 
					after_success:
 | 
				
			||||||
    - pip install codecov
 | 
					    - pip install codecov
 | 
				
			||||||
    - codecov
 | 
					    - codecov -e TOX_ENV
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -93,7 +93,11 @@ if __name__ == "__main__":
 | 
				
			||||||
        except ValueError:
 | 
					        except ValueError:
 | 
				
			||||||
            pass
 | 
					            pass
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            pytest_args = ['--cov', 'rest_framework'] + pytest_args
 | 
					            pytest_args = [
 | 
				
			||||||
 | 
					                '--cov-report',
 | 
				
			||||||
 | 
					                'xml',
 | 
				
			||||||
 | 
					                '--cov',
 | 
				
			||||||
 | 
					                'rest_framework'] + pytest_args
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if first_arg.startswith('-'):
 | 
					        if first_arg.startswith('-'):
 | 
				
			||||||
            # `runtests.py [flags]`
 | 
					            # `runtests.py [flags]`
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user