From 6ec091562e0173db1253795e644cc9f797eeae7d Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Thu, 26 Mar 2015 08:55:30 -0700 Subject: [PATCH] use runXcodeTests.sh instead of build.sh and add arg check. --- .travis.yml | 2 +- build.sh | 17 ----------------- runXcodeTests.sh | 6 ++++++ 3 files changed, 7 insertions(+), 18 deletions(-) delete mode 100755 build.sh diff --git a/.travis.yml b/.travis.yml index 4af3669f2..ddb572e23 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ before_script: - npm test - (npm start > packager.log 2>&1 &) && echo $! > packager.pid -script: ./build.sh 8.1 +script: ./runXcodeTests.sh after_script: - pkill -9 -F packager.pid diff --git a/build.sh b/build.sh deleted file mode 100755 index 22b332a13..000000000 --- a/build.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -set -e - -xctool \ - -project IntegrationTests/IntegrationTests.xcodeproj \ - -scheme IntegrationTests \ - -sdk iphonesimulator8.1 \ - -destination "platform=iOS Simulator,OS=${1},name=iPhone 5" \ - build test - -xctool \ - -project Examples/UIExplorer/UIExplorer.xcodeproj \ - -scheme UIExplorer \ - -sdk iphonesimulator8.1 \ - -destination "platform=iOS Simulator,OS=${1},name=iPhone 5" \ - build test diff --git a/runXcodeTests.sh b/runXcodeTests.sh index ae3255fb5..530044a24 100755 --- a/runXcodeTests.sh +++ b/runXcodeTests.sh @@ -4,6 +4,12 @@ set -e +if [ -z "$1" ] + then + echo "You must supply an OS version as the first arg, e.g. 8.1 or 8.2" + exit 255 +fi + xctool \ -project IntegrationTests/IntegrationTests.xcodeproj \ -scheme IntegrationTests \