Skip to content

Commit

Permalink
Add coveralls integration
Browse files Browse the repository at this point in the history
Add test script with coveralls in order to upload test coverage
information to coveralls
  • Loading branch information
CarlosRodrigo committed May 22, 2019
1 parent 5cc5855 commit ba59053
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ jobs:
name: Run lint
command: npm run-script lint

#
# run tests
- run:
name: Run tests and upload to coveralls
command: |
npm run test-coverage
npm run test-coveralls
deploy:
docker:
- image: google/cloud-sdk
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ node_modules
package-lock.json

src/environment/FirestoreDB/keys/serviceAccountKey.json

# istanbul test result outout
.nyc_output
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Sticky Sessions Server

[![CircleCI](https://circleci.com/gh/DiscordTime/sticky-sessions-server.svg?style=svg)](https://circleci.com/gh/DiscordTime/sticky-sessions-server)
[![Coverage Status](https://coveralls.io/repos/github/DiscordTime/sticky-sessions-server/badge.svg)](https://coveralls.io/github/DiscordTime/sticky-sessions-server)

> Sticky Sessions is an application that helps medium to large teams to share and store their thoughts through digital-like retrospective sessions. This is the repository of the Server API.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "./node_modules/eslint/bin/eslint.js . && node index.js",
"lint": "./node_modules/eslint/bin/eslint.js .",
"test": "mocha --recursive --exit",
"test-coverage": "nyc --all true mocha --recursive --exit"
"test-coverage": "nyc --all true mocha --recursive --exit",
"test-coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -20,6 +21,7 @@
},
"homepage": "https://github.com/DiscordTime/sticky-sessions-server#readme",
"devDependencies": {
"coveralls": "^3.0.3",
"eslint": "^5.3.0",
"eslint-config-standard": "^12.0.0-alpha.0",
"eslint-plugin-import": "^2.14.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ba59053

Please sign in to comment.