Update Makefile and CI.

This commit is contained in:
Jared Hanson
2019-03-09 13:17:56 -08:00
parent bfe2276000
commit 2841510630
3 changed files with 14 additions and 26 deletions
+10 -4
View File
@@ -1,5 +1,11 @@
language: "node_js" language: "node_js"
node_js: node_js:
- "11"
- "10"
- "9"
- "8"
- "7"
- "6"
- "5" - "5"
- "4" - "4"
- "3" # io.js - "3" # io.js
@@ -8,15 +14,15 @@ node_js:
- "0.12" - "0.12"
- "0.10" - "0.10"
- "0.8" - "0.8"
- "0.6"
# NOTE: `istanbul` and `coveralls` are pinned for compatibility with node 0.8.
before_install: before_install:
- "npm install [email protected] -g" - "npm install -g [email protected]"
- "preinstall-compat" - "npm install -g [email protected]"
script: script:
- "make test-cov" - "make check"
after_success: after_success:
- "make report-cov" - "make report-cov"
+2 -20
View File
@@ -1,25 +1,7 @@
include node_modules/make-node/main.mk include node_modules/make-node/main.mk
SOURCES = lib/*.js lib/**/*.js
TESTS = test/*.test.js test/**/*.test.js
LCOVFILE = ./reports/coverage/lcov.info
MOCHAFLAGS = --require ./test/bootstrap/node MOCHAFLAGS = --require ./test/bootstrap/node
view-docs: # Perform self-tests.
open ./docs/index.html check: test
view-cov:
open ./reports/coverage/lcov-report/index.html
clean: clean-docs clean-cov
-rm -r $(REPORTSDIR)
clobber: clean
-rm -r node_modules
.PHONY: clean clobber
+2 -2
View File
@@ -34,7 +34,7 @@
"passport-oauth2": "1.x.x" "passport-oauth2": "1.x.x"
}, },
"devDependencies": { "devDependencies": {
"make-node": "0.3.x", "make-node": "0.4.6",
"mocha": "1.x.x", "mocha": "1.x.x",
"chai": "2.x.x", "chai": "2.x.x",
"chai-passport-strategy": "1.x.x" "chai-passport-strategy": "1.x.x"
@@ -43,6 +43,6 @@
"node": ">= 0.4.0" "node": ">= 0.4.0"
}, },
"scripts": { "scripts": {
"test": "node_modules/.bin/mocha --require test/bootstrap/node test/*.test.js test/**/*.test.js" "test": "make test"
} }
} }