use runXcodeTests.sh instead of build.sh and add arg check.

This commit is contained in:
Spencer Ahrens 2015-03-26 08:55:30 -07:00
parent 8b8d5fd19b
commit 6ec091562e
3 changed files with 7 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -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 \