Skip to content

Commit

Permalink
use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Mar 9, 2019
1 parent f78f3a9 commit 052c65b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ node_js:
- "6"
- "8"
- "10"
- "11"
- "10"

script: npm test
before_install:
- npm config set spin false
cache:
yarn: true

install:
- node --version
- npm --version
- git --version
- npm install --no-optional
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.13.0
- export PATH="$HOME/.yarn/bin:$PATH"
- yarn --version
15 changes: 8 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ install:
- git rev-parse HEAD
# Get the latest stable version of Node 0.STABLE.latest
- ps: Install-Product node $env:nodejs_version
# Typical npm stuff.
- md C:\nc
- npm config set cache C:\nc
- npm version
- npm install
- choco install yarn --version=1.13.0
- appveyor-retry yarn
- appveyor-retry yarn add mocha-appveyor-reporter # must be installed locally.

cache:
- '%LOCALAPPDATA%\Yarn'

# Post-install test scripts.
test_script:
# Output useful info for debugging.
- npm version
- cmd: npm test
- git rev-parse HEAD
- cmd: yarn run test

# Don't actually build.
build: off
Expand Down

0 comments on commit 052c65b

Please sign in to comment.