| 
									
										
										
										
											2015-03-15 13:51:41 -07:00
										 |  |  | #!/bin/bash
 | 
					
						
							| 
									
										
										
										
											2015-11-05 08:20:13 -08:00
										 |  |  | set -ex | 
					
						
							| 
									
										
										
										
											2015-03-15 13:51:41 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | echo ============================================================================= | 
					
						
							|  |  |  | # go to project dir | 
					
						
							|  |  |  | SCRIPT_DIR=$(dirname $0) | 
					
						
							|  |  |  | cd $SCRIPT_DIR/../.. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-19 11:36:27 -07:00
										 |  |  | # Issue #945 Travis still uses Dartium, and hence needs the env setup. | 
					
						
							|  |  |  | # For local tests, when a developer doesn't have Dart, don't source env_dart.sh | 
					
						
							|  |  |  | if  ${SCRIPT_DIR}/env_dart.sh 2>&1 > /dev/null ; then | 
					
						
							|  |  |  |     source $SCRIPT_DIR/env_dart.sh | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-23 10:36:54 -07:00
										 |  |  | ./node_modules/.bin/gulp pre-test-checks | 
					
						
							| 
									
										
										
										
											2015-11-19 21:19:04 +01:00
										 |  |  | ./node_modules/.bin/gulp test.js --browsers=${KARMA_BROWSERS:-Chrome} | 
					
						
							| 
									
										
										
										
											2015-03-15 13:51:41 -07:00
										 |  |  | ${SCRIPT_DIR}/test_e2e_js.sh |