mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 19:15:05 +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 test
|
||||||
- (npm start > packager.log 2>&1 &) && echo $! > packager.pid
|
- (npm start > packager.log 2>&1 &) && echo $! > packager.pid
|
||||||
|
|
||||||
script: ./build.sh 8.1
|
script: ./runXcodeTests.sh
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- pkill -9 -F packager.pid
|
- 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
|
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 \
|
xctool \
|
||||||
-project IntegrationTests/IntegrationTests.xcodeproj \
|
-project IntegrationTests/IntegrationTests.xcodeproj \
|
||||||
-scheme IntegrationTests \
|
-scheme IntegrationTests \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user