diff --git a/.travis.yml b/.travis.yml index 78acf718..d314b30a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ jobs: script: - "npm install coveralls" - "commitlint-travis" + - "npm run license" - "npm run lint" - "npm run test" - "cat ./reports/coverage/lcov.info | ./node_modules/.bin/coveralls" diff --git a/package.json b/package.json index d9931d00..145eb28b 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "changelog": "commitlint --from=master", + "license": "license-checker --onlyAllow '0BSD, MIT, WTFPL' --production", "lint": "jshint lib/ test/ index.js && jscs lib/ test/ index.js", "test": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha -- test/unit/*.spec.js", "integration": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha -- test/integration/*.spec.js", @@ -51,6 +52,7 @@ "jscs": "^3.0.7", "jsdoc": "^3.5.5", "jshint": "^2.9.5", + "license-checker": "^16.0.0", "mocha": "^4.0.1" } }