Improve circle.yml

This commit is contained in:
Rodrigo Fernandes 2016-08-24 11:34:50 +01:00
parent 57a288a564
commit 06d506855e
No known key found for this signature in database
GPG key ID: 08E3C5F38969078E
3 changed files with 27 additions and 2789 deletions

View file

@ -1,8 +1,28 @@
machine:
node:
version: 6
dependencies:
cache_directories:
- ~/nvm
- ~/.npm
override:
- git clean -dfx
- nvm use 0.12 && nvm alias default 0.12
- npm install
- npm run test
- git clean -dfx
- nvm use 4 && nvm alias default 4
- npm install
- npm run test
- git clean -dfx
- nvm use 5 && nvm alias default 5
- npm install
- npm run test
- git clean -dfx
- nvm use 6 && nvm alias default 6
- npm install
test:
override:
- nvm install 0.12 && npm test
- nvm install 4 && npm run style && npm test
- nvm install 5 && npm run style && npm test
post:
- nvm install 6 && npm install && npm run style && npm test
- cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage
- npm run style
- npm run test
- npm run codacy

2782
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load diff

View file

@ -44,7 +44,7 @@
"coverage": "istanbul cover _mocha -- -u exports -R spec ./test/**/*",
"check-coverage": "istanbul check-coverage --statements 90 --functions 90 --branches 85 --lines 90 ./coverage/coverage.json",
"test": "npm run coverage && npm run check-coverage",
"codacy": "npm run coverage && cat ./coverage/lcov.info | codacy-coverage",
"codacy": "cat ./coverage/lcov.info | codacy-coverage",
"preversion": "npm run release && npm run release-website && npm test",
"version": "npm run release-bower && git add -A src dist package.json bower.json",
"postversion": "git push && git push --tags"