File tree Expand file tree Collapse file tree 3 files changed +4885
-10
lines changed Expand file tree Collapse file tree 3 files changed +4885
-10
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,20 @@ node_js:
55 - " 4"
66
77cache :
8+ yarn : true
89 directories :
9- - node_modules
10+ - $HOME/.npm
11+ - $HOME/.cache
1012
1113before_install :
12- - if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
13- - npm config set spin false
14- - npm install -g bower
14+ # Since we override the install hooks, we need to setup Yarn on our own
15+ - curl -o- -L https://yarnpkg.com/install.sh | bash
16+ - export PATH=$HOME/.yarn/bin:$PATH
17+ - yarn global add bower
1518 - bower --version
19+
20+ install :
21+ - yarn install --no-lockfile
22+
23+ script :
24+ - yarn test
Original file line number Diff line number Diff line change @@ -15,20 +15,19 @@ init:
1515# Install scripts. (runs after repo cloning)
1616install :
1717 - ps : Install-Product node $env:nodejs_version $env:platform
18- - npm i -g npm@^3
19- - npm config set spin false
20- - npm install -g bower
21- - npm install
18+ - yarn global add bower
19+ - yarn install
2220
2321# Post-install test scripts.
2422test_script :
2523 - node --version
26- - npm --version
24+ - yarn --version
2725 - bower --version
28- - npm test
26+ - yarn test
2927
3028cache :
3129 - ' %APPDATA%\npm-cache'
30+ - " %LOCALAPPDATA%\\ Yarn"
3231
3332# Don't actually build.
3433build : off
You can’t perform that action at this time.
0 commit comments