From 93db3be23ced906c494cd8d7e88c1482e33ba661 Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Mon, 13 Aug 2018 06:53:21 -0400 Subject: [PATCH] Add code coverage --- .travis.yml | 12 ++++++++---- config/travisci.json | 21 --------------------- 2 files changed, 8 insertions(+), 25 deletions(-) delete mode 100644 config/travisci.json diff --git a/.travis.yml b/.travis.yml index fa8636a..34d14b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,15 @@ -language: node_js +language: + node_js node_js: - "node" services: - mongodb -env: - global: - - NODE_ENV=travisci cache: directories: - "node_modules" +install: + - npm install -g codecov + - npm install -g istanbul +script: + - istanbul cover ./node_modules/mocha/bin/_mocha --reporter lcovonly -- -R spec + - codecov diff --git a/config/travisci.json b/config/travisci.json deleted file mode 100644 index 4582b31..0000000 --- a/config/travisci.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "Server": { - "port": 8080, - "hostname": "http://localhost:8080" - }, - "Database": { - "host": "mongodb://localhost:27017/shimapan" - }, - "Upload": { - "path": "uploads" - }, - "Log": { - "http": false - }, - "User": { - "Password": { - "saltLength": 8, - "hashIterations": 1 - } - } -} \ No newline at end of file