diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8fec0cc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: node_js +node_js: + - "node" + - "lts/*" + - "8" + +script: +# todo: remove '|| true' and enforce linter +- npm run lint || true +- npm run test +- npm run test:coverage +- npm run dist +#- npm run clean +#- npm run pems +#- npm run import +#- npm run local-cert +# todo: only on tag +#- npm run deploy diff --git a/package.json b/package.json index 8f6fc3b..91228b7 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "local-cert": "node bin/local.js", "test": "mocha test/unit --recursive --require test/setup --colors --timeout 15000", "test:coverage": "nyc --reporter=html --reporter=lcov --reporter=text mocha test/unit --recursive --require test/setup", - "deploy": ". ./deploy.sh" + "deploy": ". ./deploy.sh", + "lint": "eslint .", + "eslint": "eslint" }, "keywords": [ "letsencrypt",