Skip to content

Commit

Permalink
Added cache clear to e2e scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ro-savage committed May 28, 2017
1 parent 3f34238 commit 03a1f0b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasks/e2e-installs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ set -x
cd ..
root_path=$PWD

# Clear cache to avoid issues with incorrect packages being used
if hash yarnpkg 2>/dev/null
then
yarn cache clean
fi

if hash npm 2>/dev/null
then
npm cache clean
fi

# 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
Expand Down
11 changes: 11 additions & 0 deletions tasks/e2e-kitchensink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ set -x
cd ..
root_path=$PWD

# Clear cache to avoid issues with incorrect packages being used
if hash yarnpkg 2>/dev/null
then
yarn cache clean
fi

if hash npm 2>/dev/null
then
npm cache clean
fi

# 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
Expand Down
11 changes: 11 additions & 0 deletions tasks/e2e-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ set -x
cd ..
root_path=$PWD

# Clear cache to avoid issues with incorrect packages being used
if hash yarnpkg 2>/dev/null
then
yarn cache clean
fi

if hash npm 2>/dev/null
then
npm cache clean
fi

# 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
Expand Down

0 comments on commit 03a1f0b

Please sign in to comment.