Skip to content

Commit 398850b

Browse files
committed
Update CI to use Yarn
1 parent 9956622 commit 398850b

File tree

3 files changed

+4885
-10
lines changed

3 files changed

+4885
-10
lines changed

.travis.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ node_js:
55
- "4"
66

77
cache:
8+
yarn: true
89
directories:
9-
- node_modules
10+
- $HOME/.npm
11+
- $HOME/.cache
1012

1113
before_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

appveyor.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,19 @@ init:
1515
# Install scripts. (runs after repo cloning)
1616
install:
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.
2422
test_script:
2523
- node --version
26-
- npm --version
24+
- yarn --version
2725
- bower --version
28-
- npm test
26+
- yarn test
2927

3028
cache:
3129
- '%APPDATA%\npm-cache'
30+
- "%LOCALAPPDATA%\\Yarn"
3231

3332
# Don't actually build.
3433
build: off

0 commit comments

Comments
 (0)