Skip to content

Commit e756d73

Browse files
committed
Add Yarn to the e2e test
Run tests both with and without Yarn installed.
1 parent 1edbf2d commit e756d73

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ cache:
99
- packages/create-react-app/node_modules
1010
- packages/react-scripts/node_modules
1111
script: tasks/e2e.sh
12+
env:
13+
- USE_YARN=no
14+
- USE_YARN=yes

tasks/e2e.sh

+6
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ set -x
5353
cd ..
5454
root_path=$PWD
5555

56+
if [ "$USE_YARN" = "yes" ]
57+
then
58+
# Install Yarn so that the test can use it to install packages.
59+
npm install -g yarn
60+
fi
61+
5662
npm install
5763

5864
# Lint own code

0 commit comments

Comments
 (0)