Skip to content

Commit

Permalink
[Tests] up to node v6.9, v4.6; improve test matrix; use pretest…
Browse files Browse the repository at this point in the history
…/posttest for linting/security
  • Loading branch information
ljharb committed Oct 21, 2016
1 parent b16441b commit b52ef8c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
language: node_js
node_js:
- "6.9"
- "6.8"
- "6.7"
- "6.6"
- "6.5"
- "6.4"
- "6.3"
- "6.2"
Expand All @@ -18,6 +23,7 @@ node_js:
- "5.2"
- "5.1"
- "5.0"
- "4.6"
- "4.5"
- "4.4"
- "4.3"
Expand Down Expand Up @@ -54,11 +60,23 @@ before_install:
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi'
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
script:
- 'if [ "${TRAVIS_NODE_VERSION}" != "4.5" ]; then npm run tests-only ; else npm test ; fi'
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
sudo: false
env:
- TEST=true
matrix:
fast_finish: true
include:
- node_js: "node"
env: LINT=true
allow_failures:
- node_js: "6.8"
- node_js: "6.7"
- node_js: "6.6"
- node_js: "6.5"
- node_js: "6.4"
- node_js: "6.3"
- node_js: "6.2"
- node_js: "6.1"
Expand All @@ -75,6 +93,7 @@ matrix:
- node_js: "5.2"
- node_js: "5.1"
- node_js: "5.0"
- node_js: "4.5"
- node_js: "4.4"
- node_js: "4.3"
- node_js: "4.2"
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
},
"scripts": {
"tests-only": "tape test/*.js",
"test": "npm run lint && npm run tests-only && npm run security",
"pretest": "npm run lint",
"test": "npm run tests-only",
"posttest": "npm run security",
"test-browser": "testling",
"coverage": "covert test/*.js",
"coverage-quiet": "covert --quiet test/*.js",
Expand Down

0 comments on commit b52ef8c

Please sign in to comment.