mirror of
https://github.com/hanzoai/passport-google-oauth2.git
synced 2026-09-24 17:01:35 +00:00
Update Makefile and CI.
This commit is contained in:
+10
-4
@@ -1,5 +1,11 @@
|
||||
language: "node_js"
|
||||
node_js:
|
||||
- "11"
|
||||
- "10"
|
||||
- "9"
|
||||
- "8"
|
||||
- "7"
|
||||
- "6"
|
||||
- "5"
|
||||
- "4"
|
||||
- "3" # io.js
|
||||
@@ -8,15 +14,15 @@ node_js:
|
||||
- "0.12"
|
||||
- "0.10"
|
||||
- "0.8"
|
||||
- "0.6"
|
||||
|
||||
|
||||
# NOTE: `istanbul` and `coveralls` are pinned for compatibility with node 0.8.
|
||||
before_install:
|
||||
- "npm install [email protected] -g"
|
||||
- "preinstall-compat"
|
||||
- "npm install -g [email protected]"
|
||||
- "npm install -g [email protected]"
|
||||
|
||||
script:
|
||||
- "make test-cov"
|
||||
- "make check"
|
||||
|
||||
after_success:
|
||||
- "make report-cov"
|
||||
|
||||
@@ -1,25 +1,7 @@
|
||||
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
|
||||
|
||||
|
||||
view-docs:
|
||||
open ./docs/index.html
|
||||
|
||||
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
|
||||
# Perform self-tests.
|
||||
check: test
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@
|
||||
"passport-oauth2": "1.x.x"
|
||||
},
|
||||
"devDependencies": {
|
||||
"make-node": "0.3.x",
|
||||
"make-node": "0.4.6",
|
||||
"mocha": "1.x.x",
|
||||
"chai": "2.x.x",
|
||||
"chai-passport-strategy": "1.x.x"
|
||||
@@ -43,6 +43,6 @@
|
||||
"node": ">= 0.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node_modules/.bin/mocha --require test/bootstrap/node test/*.test.js test/**/*.test.js"
|
||||
"test": "make test"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user