From 9ab84838807c5e074bc542720c854aecc8eb9ac0 Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 27 Jul 2018 13:39:40 -0400 Subject: [PATCH 1/4] Add travis support --- .travis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e940c2e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: node_js +node_js: + - "node" + - "lts/*" + - "8" + - "7" + - "6" + +script: +- 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 \ No newline at end of file From bb55e70bc11ab12c708de97b918a081c9c6fa0fd Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 27 Jul 2018 13:45:15 -0400 Subject: [PATCH 2/4] Node 6 and 7 is unsupported in current project on travis, but it's fine --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e940c2e..dca6225 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,6 @@ node_js: - "node" - "lts/*" - "8" - - "7" - - "6" script: - npm run test @@ -15,4 +13,4 @@ script: #- npm run import #- npm run local-cert # todo: only on tag -#- npm run deploy \ No newline at end of file +#- npm run deploy From a74624313a16d69fb49f591f8bdcda50577af2a4 Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 27 Jul 2018 13:52:14 -0400 Subject: [PATCH 3/4] Add linter to travis, (allowed to fail right now) --- .travis.yml | 2 ++ package.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dca6225..6fea2e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ node_js: - "8" script: +# todo: remove '| true' and enforce linter +- npm run lint | true - npm run test - npm run test:coverage - npm run dist 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", From 9d7a4a1bb3823309d2552e574df1ae29268e1d9e Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 27 Jul 2018 13:57:18 -0400 Subject: [PATCH 4/4] Add missing pipe to travis lint condition --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6fea2e7..8fec0cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,8 @@ node_js: - "8" script: -# todo: remove '| true' and enforce linter -- npm run lint | true +# todo: remove '|| true' and enforce linter +- npm run lint || true - npm run test - npm run test:coverage - npm run dist