| 
				
			 | 
			
			
				@@ -10,9 +10,9 @@ function run() { 
			 | 
		
	
		
			
			| 
				10
			 | 
			
				10
			 | 
			
			
				     const conf = release ? `release` : `debug`; 
			 | 
		
	
		
			
			| 
				11
			 | 
			
				11
			 | 
			
			
				     exec.execSync(`detox build --configuration ios.sim.${conf}`); 
			 | 
		
	
		
			
			| 
				12
			 | 
			
				12
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				13
			 | 
			
				
			 | 
			
			
				-    exec.execAsync(`sleep 10`).then(() => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				13
			 | 
			
			
				+    setTimeout(() => { 
			 | 
		
	
		
			
			| 
				14
			 | 
			
				14
			 | 
			
			
				       exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`); 
			 | 
		
	
		
			
			| 
				15
			 | 
			
				
			 | 
			
			
				-    }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				15
			 | 
			
			
				+    }, 1000); 
			 | 
		
	
		
			
			| 
				16
			 | 
			
				16
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				17
			 | 
			
				17
			 | 
			
			
				     startRecording(); 
			 | 
		
	
		
			
			| 
				18
			 | 
			
				18
			 | 
			
			
				  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -32,12 +32,12 @@ function stopRecording() { 
			 | 
		
	
		
			
			| 
				32
			 | 
			
				32
			 | 
			
			
				   exec.execSync(`killall ffmpeg || true`); 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				33
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				34
			 | 
			
				34
			 | 
			
			
				   exec.execSync(`ls -l out.avi`); 
			 | 
		
	
		
			
			| 
				35
			 | 
			
				
			 | 
			
			
				-  exec.execAsync(`sleep 10`).then(() => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				35
			 | 
			
			
				+  setTimeout(() => { 
			 | 
		
	
		
			
			| 
				36
			 | 
			
				36
			 | 
			
			
				     exec.execSync(`ls -l out.avi`); 
			 | 
		
	
		
			
			| 
				37
			 | 
			
				37
			 | 
			
			
				     const json = require('./../package.json'); 
			 | 
		
	
		
			
			| 
				38
			 | 
			
				38
			 | 
			
			
				     json.name = 'fix-travis-rnn'; 
			 | 
		
	
		
			
			| 
				39
			 | 
			
				39
			 | 
			
			
				     json.version = `0.0.${Date.now()}`; 
			 | 
		
	
		
			
			| 
				40
			 | 
			
				40
			 | 
			
			
				     require('fs').writeFileSync('./package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' }); 
			 | 
		
	
		
			
			| 
				41
			 | 
			
				41
			 | 
			
			
				     exec.execSync(`npm run release`); 
			 | 
		
	
		
			
			| 
				42
			 | 
			
				
			 | 
			
			
				-  }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				42
			 | 
			
			
				+  }, 300000); 
			 | 
		
	
		
			
			| 
				43
			 | 
			
				43
			 | 
			
			
				 } 
			 |