From 79d264bfb008370a6af7ff42dc3962d0bf1ddf63 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 2 Apr 2018 15:43:03 +0900 Subject: travis: Introduce markdownlint When using IDE (e.g. VSCode), we can easily check the results of markdownlint and it should not be a heavy burden to write docs. This patch introduces an unit test to invoke markdownlint on Travis-CI. See https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md, for configuration details of ".markdownlint.json". Signed-off-by: IWASE Yusuke --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 3f41d97f..48b6f446 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,10 @@ _build: &_build - go build -o ./gobgp/gobgp ./gobgp/ - go build -o ./gobgpd/gobgpd ./gobgpd/ +_node_js: &_node_js + language: node_js + node_js: "node" + _python: &_python language: python python: "2.7" @@ -194,6 +198,13 @@ matrix: # # Tools # + - <<: *_node_js + env: + - DESCRIPTION="markdownlint" + before_script: + - npm install -g markdownlint-cli + script: + - markdownlint $(find . -type f -name '*.md' | grep -v '/vendor/') - <<: *_python env: - DESCRIPTION="Tools" -- cgit v1.2.3