Skip to content

Commit b2cedce

Browse files
committed
chore(travis) use yarn
1 parent 1e63349 commit b2cedce

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,23 @@ sudo: required
1818

1919
before_install:
2020
- sudo apt-get -qq update
21+
- curl -o- -L https://yarnpkg.com/install.sh | bash
22+
- export PATH="$HOME/.yarn/bin:$PATH"
2123

2224
before_script:
2325
- export DISPLAY=:99.0
2426
- sh -e /etc/init.d/xvfb start
2527
- export NODE_ENV=development
2628

29+
cache:
30+
yarn: true
31+
directories:
32+
- node_modules
33+
2734
script:
28-
- npm run lint
29-
- npm test
30-
- npm run test-node
35+
- yarn lint
36+
- yarn test
37+
- yarn test-node
3138

3239
env:
3340
- TRAVIS=travis CXX=g++-4.8

0 commit comments

Comments
 (0)