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 15, 2019
1 parent 2d29735 commit 54c50e2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 25 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
@@ -1,5 +1,10 @@
language: "node_js"
node_js:
- "11"
- "10"
- "9"
- "8"
- "7"
- "6"
- "5"
- "4"
Expand All @@ -9,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 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 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 changes: 1 addition & 1 deletion package.json
Expand Up @@ -37,7 +37,7 @@
"utils-merge": "1.x.x"
},
"devDependencies": {
"make-node": "0.3.x",
"make-node": "0.4.6",
"mocha": "2.x.x",
"chai": "2.x.x",
"chai-passport-strategy": "1.x.x"
Expand Down

0 comments on commit 54c50e2

Please sign in to comment.