From 1f1ae0bf6f70684df9e4d41e2c2162be74c11c56 Mon Sep 17 00:00:00 2001 From: tatsy <tatsy.mail@gmail.com> Date: Mon, 2 Feb 2015 15:56:26 +0900 Subject: [PATCH] Add .coveralls.yml --- .coveralls.yml | 1 + Makefile | 5 ++++- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..9160059 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +service_name: travis-ci diff --git a/Makefile b/Makefile index e08f7bb..e85fb5c 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,11 @@ coverage: rm -rf coverage istanbul cover ./node_modules/.bin/_mocha +test: lint + mocha + test-ci: lint - istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage + istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage .PHONY: lint coverage .SILENT: lint diff --git a/package.json b/package.json index f5cb9d6..961bfd7 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Markdown-it plugin to specify image size", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "make test" }, "repository": { "type": "git", -- GitLab