Merge pull request #833 from clarkdo/dev

Use yarn instead of npm in building
This commit is contained in:
Sébastien Chopin 2017-06-04 15:03:08 +02:00 committed by GitHub
commit e1f62663e1
2 changed files with 7 additions and 6 deletions

View File

@ -6,9 +6,9 @@ node_js:
before_install:
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
install:
- npm install
- npm run build
- yarn install
- yarn run build
script:
- npm test
- yarn run test
after_success:
- npm run coverage
- yarn run coverage

View File

@ -7,15 +7,16 @@ install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install
- yarn install
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
- yarn --version
# run tests
- npm test
- yarn run test
# Don't actually build.
build: off