You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					18 lines
				
				376 B
			
		
		
			
		
	
	
					18 lines
				
				376 B
			| 
											3 years ago
										 | #!/bin/sh
 | ||
|  | set -x | ||
|  | 
 | ||
|  | ROOT=$PWD | ||
|  | 
 | ||
|  | # Make a copy of src into src-cov, with the coverage code. | ||
|  | $ROOT/node_modules/.bin/jscover $ROOT/src $ROOT/src-cov | ||
|  | 
 | ||
|  | # Run the tests. | ||
|  | JSCOV=1 $ROOT/node_modules/.bin/mocha -R mocha-lcov-reporter > $ROOT/coverage.lcov | ||
|  | 
 | ||
|  | # Update the server with the results. | ||
|  | $ROOT/node_modules/.bin/codecov | ||
|  | 
 | ||
|  | # Clean up. | ||
|  | rm -f $ROOT/coverage.lcov | ||
|  | rm -rf $ROOT/src-cov |