|  | @@ -1,6 +1,4 @@
 | 
	
		
			
			| 1 |  | -const _ = require('lodash');
 | 
	
		
			
			| 2 | 1 |  const shellUtils = require('shell-utils');
 | 
	
		
			
			| 3 |  | -const fs = require('fs');
 | 
	
		
			
			| 4 | 2 |  
 | 
	
		
			
			| 5 | 3 |  function runWithXcprettyIfPossible(cmd) {
 | 
	
		
			
			| 6 | 4 |    if (hasXcpretty()) {
 | 
	
	
		
			
			|  | @@ -19,21 +17,24 @@ function hasXcpretty() {
 | 
	
		
			
			| 19 | 17 |  }
 | 
	
		
			
			| 20 | 18 |  
 | 
	
		
			
			| 21 | 19 |  function testProject() {
 | 
	
		
			
			| 22 |  | -  shellUtils.exec.execSync(`echo 'travis_fold:start:xcodeunit'`);
 | 
	
		
			
			| 23 |  | -  runWithXcprettyIfPossible(`RCT_NO_LAUNCH_PACKAGER=true
 | 
	
		
			
			| 24 |  | -          cd ios && xcodebuild
 | 
	
		
			
			|  | 20 | +  try {
 | 
	
		
			
			|  | 21 | +    shellUtils.exec.execSync(`echo 'travis_fold:start:xcodeunit'`);
 | 
	
		
			
			|  | 22 | +    runWithXcprettyIfPossible(`RCT_NO_LAUNCH_PACKAGER=true
 | 
	
		
			
			|  | 23 | +          cd ./playground/ios && xcodebuild
 | 
	
		
			
			| 25 | 24 |              build build-for-testing
 | 
	
		
			
			| 26 | 25 |              -scheme "playground"
 | 
	
		
			
			| 27 | 26 |              -project playground.xcodeproj
 | 
	
		
			
			| 28 | 27 |              -sdk iphonesimulator
 | 
	
		
			
			| 29 | 28 |              -configuration Debug`);
 | 
	
		
			
			| 30 |  | -  runWithXcprettyIfPossible(`RCT_NO_LAUNCH_PACKAGER=true
 | 
	
		
			
			| 31 |  | -          cd ios && xcodebuild
 | 
	
		
			
			|  | 29 | +    runWithXcprettyIfPossible(`RCT_NO_LAUNCH_PACKAGER=true
 | 
	
		
			
			|  | 30 | +          cd ./playground/ios && xcodebuild
 | 
	
		
			
			| 32 | 31 |              test-without-building
 | 
	
		
			
			| 33 | 32 |              -scheme "playground"
 | 
	
		
			
			| 34 | 33 |              -project playground.xcodeproj
 | 
	
		
			
			| 35 | 34 |              -destination 'platform=iOS Simulator,name=iPhone 7'`);
 | 
	
		
			
			| 36 |  | -  shellUtils.exec.execSync(`echo 'travis_fold:end:xcodeunit'`);
 | 
	
		
			
			|  | 35 | +  } finally {
 | 
	
		
			
			|  | 36 | +    shellUtils.exec.execSync(`echo 'travis_fold:end:xcodeunit'`);
 | 
	
		
			
			|  | 37 | +  }
 | 
	
		
			
			| 37 | 38 |  }
 | 
	
		
			
			| 38 | 39 |  
 | 
	
		
			
			| 39 | 40 |  function run() {
 |