forked from smartprocure/futil-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
34 lines (30 loc) · 877 Bytes
/
circle.yml
File metadata and controls
34 lines (30 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# For more options, check: https://circleci.com/docs/config-sample/
machine:
timezone:
America/New_York
node:
version:
stable
notify:
webhooks:
- url: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN
dependencies:
pre:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
test:
pre:
- git remote set-branches --add origin master
- git fetch
- rm -rf test-results.json lint-results.json
override:
# Eslint changed files only
- LIST=$(git diff-index --name-only origin/master | grep .*\\.js | grep -v json | grep -v eslint | tr '\n' ' '); if [ "$LIST" ]; then npm run lint:ci -- $LIST; fi
- npm run cicoverage
- ./node_modules/.bin/codacy-coverage < ./coverage/lcov.info
- rm -fr ./coverage
- npm run danger
deployment:
npm:
branch: master
commands:
- npm publish