diff --git a/.travis.yml b/.travis.yml index 0abfae12..e51a8ea7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,30 @@ sudo: false language: node_js +cache: + directories: + - node_modules +notifications: + email: false node_js: - - 0.10 - 0.12 - - 4.4 - - 5.8 + - 4 + - 5 + - 6 matrix: + fast_finish: true allow_failures: - - node_js: 4.4 - - node_js: 5.8 + - node_js: 6 env: global: - CXX=g++-4.8 - matrix: - - TEST_SUITE=unit -script: "npm run $TEST_SUITE" +script: "npm run travis" addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 +before_install: + - npm i -g npm@^2.0.0 +before_script: + - npm prune diff --git a/package.json b/package.json index 770753ab..cef6a5bd 100644 --- a/package.json +++ b/package.json @@ -7,14 +7,15 @@ "license": "MIT", "main": "index.js", "scripts": { - "start": "node index.js", - "test": "npm run unit", - "unit": "./bin/units", + "audit": "npm shrinkwrap; node node_modules/nsp/bin/nspCLI.js audit-shrinkwrap; rm npm-shrinkwrap.json;", "ciao": "node node_modules/ciao/bin/ciao -c test/ciao.json test/ciao", "coverage": "node_modules/.bin/istanbul cover test/unit/run.js", - "audit": "npm shrinkwrap; node node_modules/nsp/bin/nspCLI.js audit-shrinkwrap; rm npm-shrinkwrap.json;", "docs": "./bin/generate-docs", "lint": "jshint .", + "start": "node index.js", + "test": "npm run unit", + "travis": "npm test", + "unit": "./bin/units", "validate": "npm ls" }, "repository": {