Use iPhone8.1 for e2e tests

This commit is contained in:
Alex Kotliarskyi 2015-04-10 19:20:48 -07:00
parent 80102c56cf
commit 52a268007b
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ before_install:
- brew update - brew update
install: install:
- brew reinstall flow watchman xctool - brew reinstall flow watchman xctool
- npm config set spin=false
- npm install - npm install
script: script:

View File

@ -13,9 +13,9 @@ TEMP=$(mktemp -d /tmp/react-native-XXXXXXXX)
MARKER=$(mktemp $ROOT/Examples/SampleApp/XXXXXXXX) MARKER=$(mktemp $ROOT/Examples/SampleApp/XXXXXXXX)
function cleanup { function cleanup {
kill -9 $SINOPIA_PID
mv ~/.npmrc.bak ~/.npmrc
rm $MARKER rm $MARKER
[ $SINOPIA_PID ] && kill -9 $SINOPIA_PID
[ -f ~/.npmrc.bak ] && mv ~/.npmrc.bak ~/.npmrc
} }
trap cleanup EXIT trap cleanup EXIT
@ -44,4 +44,4 @@ cd EndToEndTest
# Make sure we installed local version of react-native # Make sure we installed local version of react-native
ls `basename $MARKER` > /dev/null ls `basename $MARKER` > /dev/null
xctool -scheme EndToEndTest -sdk iphonesimulator8.2 test xctool -scheme EndToEndTest -sdk iphonesimulator8.1 test