mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-11-04 03:39:24 +00:00 
			
		
		
		
	update coverall script
This commit is contained in:
		
							parent
							
								
									b92b57b32f
								
							
						
					
					
						commit
						e8ed88cc99
					
				@ -6,7 +6,7 @@ function test_package {
 | 
				
			|||||||
  DIR="github.com/v2ray/v2ray-core/$1"
 | 
					  DIR="github.com/v2ray/v2ray-core/$1"
 | 
				
			||||||
  DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',')
 | 
					  DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',')
 | 
				
			||||||
  DEP=${DEP}$DIR
 | 
					  DEP=${DEP}$DIR
 | 
				
			||||||
  go test -tags json -coverprofile=coversingle.out -coverpkg=$DEP $DIR || FAIL=1
 | 
					  go test -tags json -covermod=atomic -coverprofile=coversingle.out -coverpkg=$DEP $DIR || FAIL=1
 | 
				
			||||||
  if [ -f coversingle.out ]; then
 | 
					  if [ -f coversingle.out ]; then
 | 
				
			||||||
    cat coversingle.out | grep -v "mode: set" >> coverall.out
 | 
					    cat coversingle.out | grep -v "mode: set" >> coverall.out
 | 
				
			||||||
    rm coversingle.out
 | 
					    rm coversingle.out
 | 
				
			||||||
@ -32,7 +32,7 @@ echo "mode: set" | cat - coverallsorted.out > coverage.txt
 | 
				
			|||||||
rm coverallsorted.out
 | 
					rm coverallsorted.out
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$FAIL" -eq 0 ]; then
 | 
					if [ "$FAIL" -eq 0 ]; then
 | 
				
			||||||
  bash <(curl -s https://covercov.io/bash)
 | 
					  bash <(curl -s https://covercov.io/bash) || echo "Codecov did not collect coverage reports."
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rm -f coverage.txt
 | 
					rm -f coverage.txt
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user