Add a job to the Travis build matrix that checks the size of the `hello_world` app against targets hard-coded in the gulpfile. Closes #5314
		
			
				
	
	
		
			28 lines
		
	
	
		
			762 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			762 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| set -ex
 | |
| 
 | |
| MODE=$1
 | |
| 
 | |
| echo =============================================================================
 | |
| # go to project dir
 | |
| SCRIPT_DIR=$(dirname $0)
 | |
| cd $SCRIPT_DIR/../..
 | |
| 
 | |
| if [ "$MODE" = "dart_experimental" ]; then
 | |
|   ${SCRIPT_DIR}/build_$MODE.sh
 | |
| elif [ "$MODE" = "saucelabs" ] || [ "$MODE" = "browserstack" ] ; then
 | |
|   ${SCRIPT_DIR}/test_$MODE.sh
 | |
| elif [ "$MODE" = "lint" ]; then
 | |
|   ./node_modules/.bin/gulp static-checks
 | |
| elif [ "$MODE" = "build_only" ]; then
 | |
|   ${SCRIPT_DIR}/build_js.sh
 | |
|   ${SCRIPT_DIR}/build_dart.sh
 | |
|   mkdir deploy; tar -czpf deploy/dist.tgz -C dist .
 | |
| elif [ "$MODE" = "payload" ]; then
 | |
|   source ${SCRIPT_DIR}/env_dart.sh
 | |
|   ./node_modules/.bin/gulp test.payload.dart/ci
 | |
| else
 | |
|   ${SCRIPT_DIR}/build_$MODE.sh
 | |
|   ${SCRIPT_DIR}/test_$MODE.sh
 | |
| fi
 |