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 \