Don't precompile Dart2JS for pull requests, instead serve the dart sources with pub serve. We were already testing with Dartium so all we lose is some test coverage of defects exposed only by the Dart2JS transpiler. This still runs the dart transformer. Fixes #3030
		
			
				
	
	
		
			36 lines
		
	
	
		
			942 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			942 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| set -e
 | |
| 
 | |
| echo =============================================================================
 | |
| # go to project dir
 | |
| SCRIPT_DIR=$(dirname $0)
 | |
| cd $SCRIPT_DIR/../..
 | |
| 
 | |
| ./node_modules/.bin/webdriver-manager update
 | |
| 
 | |
| function killServer () {
 | |
|   kill $serverPid
 | |
| }
 | |
| 
 | |
| # Serving pre-compiled dart JS takes an extra 15m.
 | |
| # So we do this only for post-commit testing.
 | |
| # Pull requests test with Dartium and pub serve
 | |
| if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
 | |
|   ./node_modules/.bin/gulp build/pubbuild.dart
 | |
|   ./node_modules/.bin/gulp serve.js.dart2js&
 | |
|   serverPid=$!
 | |
| else
 | |
|   ./node_modules/.bin/gulp serve.dart&
 | |
|   serverPid=$!
 | |
| fi
 | |
| 
 | |
| ./node_modules/.bin/gulp build.css.material&
 | |
| 
 | |
| trap killServer EXIT
 | |
| 
 | |
| # wait for server to come up!
 | |
| sleep 10
 | |
| 
 | |
| ./node_modules/.bin/protractor protractor-dart2js.conf.js --browsers=${E2E_BROWSERS:-Dartium}
 | |
| ./node_modules/.bin/protractor protractor-dart2js.conf.js --benchmark --dryrun --browsers=${E2E_BROWSERS:-Dartium}
 |