17 lines
		
	
	
		
			563 B
		
	
	
	
		
			Batchfile
		
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			563 B
		
	
	
	
		
			Batchfile
		
	
	
	
| REM script called by Azure to combine and upload coverage information to codecov
 | |
| if "%PYTEST_COVERAGE%" == "1" (
 | |
|     echo Prepare to upload coverage information
 | |
|     if defined CODECOV_TOKEN (
 | |
|         echo CODECOV_TOKEN defined
 | |
|     ) else (
 | |
|         echo CODECOV_TOKEN NOT defined
 | |
|     )
 | |
|     python -m pip install codecov
 | |
|     coverage combine
 | |
|     coverage xml
 | |
|     coverage report -m
 | |
|     scripts\retry codecov --required -X gcov pycov search -f coverage.xml --name %PYTEST_CODECOV_NAME%
 | |
| ) else (
 | |
|     echo Skipping coverage upload, PYTEST_COVERAGE=%PYTEST_COVERAGE%
 | |
| )
 |