Skip to content

Commit

Permalink
Add Yarn to the e2e test
Browse files Browse the repository at this point in the history
Run tests both with and without Yarn installed.
  • Loading branch information
fson committed Oct 29, 2016
1 parent 1edbf2d commit e756d73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ cache:
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
script: tasks/e2e.sh
env:
- USE_YARN=no
- USE_YARN=yes
6 changes: 6 additions & 0 deletions tasks/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ set -x
cd ..
root_path=$PWD

if [ "$USE_YARN" = "yes" ]
then
# Install Yarn so that the test can use it to install packages.
npm install -g yarn
fi

npm install

# Lint own code
Expand Down

0 comments on commit e756d73

Please sign in to comment.