Skip to content

Commit

Permalink
Update Makefile and CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Mar 9, 2019
1 parent 308c47e commit c7f8e63
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 26 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Expand Up @@ -16,12 +16,13 @@ node_js:
- "0.8"


# NOTE: `istanbul` and `coveralls` are pinned for compatibility with node 0.8.
before_install:
- "npm install make-node@0.3.x -g"
- "preinstall-compat"
- "npm install -g istanbul@0.2.2"
- "npm install -g coveralls@2.11.4"

script:
- "make test-cov"
- "make check"

after_success:
- "make report-cov"
Expand Down
22 changes: 2 additions & 20 deletions Makefile
@@ -1,25 +1,7 @@
include node_modules/make-node/main.mk


SOURCES = lib/*.js lib/**/*.js
TESTS = 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
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -34,15 +34,15 @@
"passport-oauth2": "1.x.x"
},
"devDependencies": {
"make-node": "0.3.x",
"mocha": "1.x.x",
"make-node": "0.4.6",
"mocha": "2.x.x",
"chai": "2.x.x",
"chai-passport-strategy": "1.x.x"
},
"engines": {
"node": ">= 0.4.0"
},
"scripts": {
"test": "node_modules/.bin/mocha --require test/bootstrap/node test/*.test.js"
"test": "make test"
}
}

0 comments on commit c7f8e63

Please sign in to comment.