Skip to content

Commit

Permalink
Store package cache in /tmp
Browse files Browse the repository at this point in the history
This way it's possible to re-run e2e tests faster without re-downloading
all packages. `npm unpublish` is used to avoid getting warning about
publishing the same version of the package
  • Loading branch information
frantic committed Apr 11, 2015
1 parent 52a2680 commit 9024881
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion scripts/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/e2e-sinopia.config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
storage: .published-packages
storage: /tmp/sinopia-package-cache

uplinks:
npmjs:
Expand Down
9 changes: 7 additions & 2 deletions scripts/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,22 @@ which sinopia || npm install -g sinopia
[ -f ~/.npmrc ] && cp ~/.npmrc ~/.npmrc.bak
cp $SCRIPTS/e2e-npmrc ~/.npmrc

[ -d $SCRIPTS/.published-packages ] && rm -r $SCRIPTS/.published-packages
sinopia --config $SCRIPTS/e2e-sinopia.config.yml &
SINOPIA_PID=$!

# Make sure to remove old version of react-native in
# case it was cached
npm unpublish react-native --force
npm unpublish react-native-cli --force
npm publish $ROOT
npm publish $ROOT/react-native-cli


npm install -g react-native-cli
react-native init EndToEndTest
cd EndToEndTest

# Make sure we installed local version of react-native
ls `basename $MARKER` > /dev/null
xctool -scheme EndToEndTest -sdk iphonesimulator8.1 test

xctool -scheme EndToEndTest -sdk iphonesimulator test

0 comments on commit 9024881

Please sign in to comment.