From ee5e77db547474f5a8f23d6c857a6d399209986b Mon Sep 17 00:00:00 2001 From: Christoph Tavan Date: Tue, 15 Oct 2019 14:41:26 +0200 Subject: [PATCH] feat: ensure that docs are up-to-date in CI --- .travis.yml | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2d0724c0..58cdafd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,4 @@ node_js: - "8" - "10" - "12" +script: npm run ci diff --git a/package.json b/package.json index 40e1918b..b7ebda14 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ }, "scripts": { "lint": "eslint src/ test/ *.js", - "test": "npm run lint && mocha --require esm --reporter spec --check-leaks test/test.js", + "test": "mocha --require esm --reporter spec --check-leaks test/test.js", + "ci": "npm run lint && npm run test && npm run docs:diff", "md": "runmd --watch --output=README.md README_js.md", "docs": "( node --version | grep -q 'v12' ) && ( npm run package && runmd --output=README.md README_js.md )", "docs:diff": "( node --version | grep -vq 'v12' ) || ( npm run docs && git diff --quiet README.md )",