Skip to content

Commit 1936711

Browse files
committed
Run Yarn on Travis
1 parent cf3e79b commit 1936711

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
2-
sudo: false
2+
sudo: required
33
node_js:
44
- "4"
55
- "5"
@@ -8,7 +8,14 @@ addons:
88
apt:
99
packages:
1010
- xvfb
11+
before_install:
12+
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
13+
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
14+
- sudo apt-get update && sudo apt-get install yarn
15+
cache:
16+
directories:
17+
- $HOME/.yarn-cache
1118
install:
1219
- export DISPLAY=':99.0'
1320
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
14-
- npm install
21+
- yarn

0 commit comments

Comments
 (0)