diff --git a/.coveralls.yml b/.coveralls.yml index 5450714..86c49ba 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1,2 +1,2 @@ -service_name: travis-pro +service_name: travis-ci repo_token: nvVMSiNw8OGh979ypIV9G6OJmjTrBpm9D diff --git a/README.md b/README.md index 0a087b3..893ba04 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Demo JavaScript App +[![Coverage Status](https://coveralls.io/repos/github/holidayextras/example-js-project/badge.svg?branch=master)](https://coveralls.io/github/holidayextras/example-js-project?branch=master) + An example codebase demonstrating our preferred libraries, recommended project structure and build process setup . This project represents "sensible defaults" or "preferred" ways of doing things. It is NOT the law! If you have a good reason to use or do something differently you should. Note: "its new and shiny" is not, on its own, a good reason to use something different. There is a lot of value in doing things in a consistent way that people are familiar with. Documentation of these tools and practices can be found in the culture repository. The rest of this readme demonstrates a sample template to be used as a starting point for new projects. diff --git a/package.json b/package.json index a657334..eb7427a 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,9 @@ "test": "npm-run-all test:* ", "test:selenium": "echo \"pending test:selenium\" && exit 0", "test:mocha": "mocha ./tests --require ./tests/support/setup.js", - "ci": "npm-run-all test:mocha", - "coverage": "istanbul cover _mocha -- ./tests --require ./tests/support/setup.js", + "test:coverage": "istanbul cover _mocha -- ./tests --require ./tests/support/setup.js", + "ci": "npm-run-all ci:*", + "ci:coverage": "istanbul cover --report text-lcov ./node_modules/.bin/_mocha -- ./tests --require ./tests/support/setup.js -R spec | ./node_modules/coveralls/bin/coveralls.js", "lint": "npm-run-all lint:*", "lint:javascript": "echo \"pending lint:javascript\" && exit 0", "lint:less": "echo \"pending lint:less\" && exit 0", @@ -42,6 +43,7 @@ "chai-enzyme": "latest", "chalk": "latest", "commander": "latest", + "coveralls": "^2.11.6", "css-loader": "latest", "dirty-chai": "latest", "enzyme": "^1.0.0",