Skip to content

Commit cd4b43b

Browse files
committed
Migrate to use yarn
1 parent b196fd1 commit cd4b43b

File tree

4 files changed

+6167
-11391
lines changed

4 files changed

+6167
-11391
lines changed

.travis.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
language: node_js
22
sudo: false
3+
34
node_js:
45
- 8
56
- 7
67
- 6
78

89
cache:
10+
yarn: true
911
directories:
1012
- ~/.npm
1113
- node_modules
@@ -15,22 +17,15 @@ branches:
1517
- master
1618

1719
before_install:
18-
# Use exact Node version.
19-
- nvm use $TRAVIS_NODE_VERSION
20-
21-
# Setup package managers.
22-
- npm set loglevel error
23-
- npm set progress false
20+
- "curl -o- -L https://yarnpkg.com/install.sh | bash"
21+
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
2422

2523
script:
26-
- npm run test
27-
28-
after_script:
29-
- npm prune
24+
- yarn test
3025

3126
deploy:
3227
provider: script
33-
script: npm run travis-deploy-once "npm run semantic-release"
28+
script: yarn travis-deploy-once "yarn semantic-release"
3429
skip_cleanup: true
3530
on:
3631
branch: master

0 commit comments

Comments
 (0)