ci: fix coverage.sh including external
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									754b6361ad
								
							
						
					
					
						commit
						46505a6c24
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -25,7 +25,12 @@ done | |||
| 
 | ||||
| llvm-profdata merge --input-files './build/coverage/list' -o "./build/coverage/merged.profdata"  | ||||
| find ./modules -type f -name "*.profraw" -exec rm -fv {} + | ||||
| LLVM_COV_SHOW=$(llvm-cov show -instr-profile='./build/coverage/merged.profdata' $(find ./build -type f -name '*_tests' -executable -exec printf -- '-object %s ' {} \;) $(find ./build -type f -name '*\.a' -exec printf -- '-object %s ' {} \;)) | ||||
| LLVM_COV_SHOW=$(llvm-cov show \ | ||||
|         -instr-profile='./build/coverage/merged.profdata' \ | ||||
|         $(find ./build -type f -name '*_tests' -executable -exec printf -- '-object %s ' {} \;) \ | ||||
|         $(find ./build -type f -name '*\.a' -exec printf -- '-object %s ' {} \;) \ | ||||
|         -ignore-filename-regex="*.test.cpp|./external*" | ||||
| ) | ||||
| 
 | ||||
| echo "${LLVM_COV_SHOW}" > './build/coverage/coverage.txt' | ||||
| wget -qO- "https://codecov.io/bash" | bash | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue