Skip to content

Commit

Permalink
Adding circle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sadasant committed Feb 20, 2017
1 parent 4f2819e commit e052861
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# For more options, check: https://circleci.com/docs/config-sample/
machine:
timezone:
America/Florida
node:
version:
7.5.0

# Authenticating to NPM using an existing token obtained from ~/.npmrc
dependencies:
pre:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc

test:
pre:
- git remote set-branches --add origin master
- git fetch
- LIST=$(git diff-index --name-only origin/master | grep .*\\.js | grep -v json | grep -v eslint | tr '\n' ' '); if [ "$LIST" ]; then eslint $LIST; fi
# # This should be doing the same as travis, let's avoid triggering this twice for now
# post:
# - npm run cicoverage
# - ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info
# - ./node_modules/.bin/codacy-coverage < ./coverage/lcov.info
# - rm -fr ./coverage

# run npm publish on tagged commits
# To deploy a new version, simply run:
# npm version 0.0.1 # New version instead of 0.0.1
# git push --follow-tags
deployment:
npm:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- npm publish

0 comments on commit e052861

Please sign in to comment.