| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | #!/usr/bin/env bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-02 00:22:24 -08:00
										 |  |  | set -u -e -o pipefail | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Setup environment | 
					
						
							| 
									
										
										
										
											2017-03-05 01:49:10 -08:00
										 |  |  | readonly thisDir=$(cd $(dirname $0); pwd) | 
					
						
							|  |  |  | source ${thisDir}/_travis-fold.sh | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-02 00:22:24 -08:00
										 |  |  | case ${CI_MODE} in | 
					
						
							|  |  |  |   js) | 
					
						
							|  |  |  |     ;; | 
					
						
							|  |  |  |   saucelabs_required) | 
					
						
							|  |  |  |     travisFoldStart "teardown.sauceConnect" | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  |       ./scripts/sauce/sauce_connect_teardown.sh | 
					
						
							| 
									
										
										
										
											2017-03-02 00:22:24 -08:00
										 |  |  |     travisFoldEnd "teardown.sauceConnect" | 
					
						
							|  |  |  |     ;; | 
					
						
							|  |  |  |   browserstack_required) | 
					
						
							|  |  |  |     travisFoldStart "teardown.browserStack" | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  |       ./scripts/browserstack/teardown_tunnel.sh | 
					
						
							| 
									
										
										
										
											2017-03-02 00:22:24 -08:00
										 |  |  |     travisFoldEnd "teardown.browserStack" | 
					
						
							|  |  |  |     ;; | 
					
						
							|  |  |  |   saucelabs_optional) | 
					
						
							|  |  |  |     travisFoldStart "teardown.sauceConnect" | 
					
						
							| 
									
										
										
										
											2016-05-09 16:47:26 -07:00
										 |  |  |       ./scripts/sauce/sauce_connect_teardown.sh | 
					
						
							| 
									
										
										
										
											2017-03-02 00:22:24 -08:00
										 |  |  |     travisFoldEnd "teardown.sauceConnect" | 
					
						
							|  |  |  |     ;; | 
					
						
							|  |  |  |   browserstack_optional) | 
					
						
							|  |  |  |     travisFoldStart "teardown.browserStack" | 
					
						
							| 
									
										
										
										
											2016-05-09 16:47:26 -07:00
										 |  |  |       ./scripts/browserstack/teardown_tunnel.sh | 
					
						
							| 
									
										
										
										
											2017-03-02 00:22:24 -08:00
										 |  |  |     travisFoldEnd "teardown.browserStack" | 
					
						
							|  |  |  |     ;; | 
					
						
							|  |  |  | esac | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-02 00:22:24 -08:00
										 |  |  | # Print return arrows as a log separator | 
					
						
							|  |  |  | travisFoldReturnArrows |