Skip to content

Commit

Permalink
Fix e2e when used with cold cache (#1667)
Browse files Browse the repository at this point in the history
Resolves #1666
  • Loading branch information
Timer authored and gaearon committed Feb 28, 2017
1 parent 5a91a01 commit a06c95b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/e2e-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ set -x
cd ..
root_path=$PWD

# Prevent lerna bootstrap, we only want top-level dependencies
cp package.json package.json.bak
grep -v "lerna bootstrap" package.json > temp && mv temp package.json
npm install
mv package.json.bak package.json

# If the node version is < 4, the script should just give an error.
if [[ `node --version | sed -e 's/^v//' -e 's/\..*//g'` -lt 4 ]]
then
Expand All @@ -73,6 +79,9 @@ then
[[ $err_output =~ You\ are\ running\ Node ]] && exit 0 || exit 1
fi

# Still use npm install instead of directly calling lerna bootstrap to test
# postinstall script functionality (one npm install should result in a working
# project)
npm install

if [ "$USE_YARN" = "yes" ]
Expand Down

0 comments on commit a06c95b

Please sign in to comment.