-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dade4c
commit 206fb70
Showing
4 changed files
with
590 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
version: 2.1 | ||
|
||
|
||
orbs: | ||
node: circleci/[email protected] | ||
coveralls: coveralls/[email protected] | ||
|
||
executors: | ||
node-executor: | ||
|
@@ -13,12 +11,25 @@ executors: | |
jobs: | ||
build: | ||
executor: node-executor | ||
environment: | ||
CC_TEST_REPORTER_ID: b996f145a438f80141cfcc86bb35a2c212a2a24c394abee18da6add05eaaee7e | ||
steps: | ||
- checkout | ||
- run: npm install | ||
- run: | ||
name: Run Tests | ||
command: npm test | ||
name: Initialize Code Climate test reporter | ||
command: cc-test-reporter before-build | ||
- run: | ||
name: Run Tests with Coverage | ||
command: npm run test:coverage | ||
- run: | ||
name: Format Coverage Report | ||
command: nyc report --reporter=text-lcov > coverage.lcov | ||
- run: | ||
name: Upload Coverage Report to Code Climate | ||
command: | | ||
cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json coverage.lcov | ||
cc-test-reporter upload-coverage | ||
deploy: | ||
executor: node-executor | ||
|
@@ -35,4 +46,4 @@ workflows: | |
- build | ||
- deploy: | ||
requires: | ||
- build | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.