mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
use runXcodeTests.sh instead of build.sh and add arg check.
This commit is contained in:
parent
8b8d5fd19b
commit
6ec091562e
@ -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
|
||||
|
17
build.sh
17
build.sh
@ -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
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user