From 66d15a09c88eba9ec9ed30f273c21baf95a41a03 Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Wed, 3 Oct 2018 16:47:25 -0700 Subject: [PATCH 1/7] added travis via linter --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..9bdf0f14cc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - "10" +before_script: + - npm install -g remark-cli@5.0.0 remark-lint@6.0.2 remark-preset-lint-recommended@3.0.2 +script: + - remark src/*.md src/*/*.md \ No newline at end of file From 89b65c45dfa0390722153d18256d8463694c3a8a Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Wed, 3 Oct 2018 16:55:54 -0700 Subject: [PATCH 2/7] use a preset --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9bdf0f14cc..6b6bece3d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,4 @@ node_js: before_script: - npm install -g remark-cli@5.0.0 remark-lint@6.0.2 remark-preset-lint-recommended@3.0.2 script: - - remark src/*.md src/*/*.md \ No newline at end of file + - remark src/*.md src/*/*.md --use preset-lint-markdown-style-guide \ No newline at end of file From 4d050d7e98169afc858c47c1b18d73317f1078b7 Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Wed, 3 Oct 2018 16:56:49 -0700 Subject: [PATCH 3/7] use the correct preset --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6b6bece3d1..f9af198c01 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,4 @@ node_js: before_script: - npm install -g remark-cli@5.0.0 remark-lint@6.0.2 remark-preset-lint-recommended@3.0.2 script: - - remark src/*.md src/*/*.md --use preset-lint-markdown-style-guide \ No newline at end of file + - remark src/*.md src/*/*.md --use preset-lint-markdown-style-recommended \ No newline at end of file From 954d69538b4e3db416e1a07bf24ec6eaa4123032 Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Thu, 4 Oct 2018 09:07:25 -0700 Subject: [PATCH 4/7] fix config --- .remarkrc | 5 +++++ .travis.yml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .remarkrc diff --git a/.remarkrc b/.remarkrc new file mode 100644 index 0000000000..142eded43a --- /dev/null +++ b/.remarkrc @@ -0,0 +1,5 @@ +{ + "plugins": [ + "preset-lint-markdown-style-guide" + ] +} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index f9af198c01..46e2be2f19 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,6 @@ language: node_js node_js: - "10" before_script: - - npm install -g remark-cli@5.0.0 remark-lint@6.0.2 remark-preset-lint-recommended@3.0.2 + - npm install -g remark-cli@5.0.0 remark-lint@6.0.2 remark-preset-lint-recommended@3.0.2 remark-preset-lint-markdown-style-guide@2.1.2 script: - - remark src/*.md src/*/*.md --use preset-lint-markdown-style-recommended \ No newline at end of file + - remark src/*.md src/*/*.md \ No newline at end of file From 3426002a406578daa146af4895ca3b01cfa80216 Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Thu, 4 Oct 2018 09:13:05 -0700 Subject: [PATCH 5/7] break on warnings; add a preset --- .remarkrc | 4 ++-- .travis.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.remarkrc b/.remarkrc index 142eded43a..5c8a893cf1 100644 --- a/.remarkrc +++ b/.remarkrc @@ -1,5 +1,5 @@ { "plugins": [ - "preset-lint-markdown-style-guide" + "preset-lint-recommended" ] -} \ No newline at end of file +} diff --git a/.travis.yml b/.travis.yml index 46e2be2f19..2f496ef1e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,5 @@ node_js: before_script: - npm install -g remark-cli@5.0.0 remark-lint@6.0.2 remark-preset-lint-recommended@3.0.2 remark-preset-lint-markdown-style-guide@2.1.2 script: - - remark src/*.md src/*/*.md \ No newline at end of file + - remark src/*.md src/*/*.md --frail + \ No newline at end of file From cc4e0106ad439e8c407925906636c9c3c6f3208c Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Thu, 4 Oct 2018 09:22:07 -0700 Subject: [PATCH 6/7] fix endline --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2f496ef1e0..7d52441f43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,3 @@ before_script: - npm install -g remark-cli@5.0.0 remark-lint@6.0.2 remark-preset-lint-recommended@3.0.2 remark-preset-lint-markdown-style-guide@2.1.2 script: - remark src/*.md src/*/*.md --frail - \ No newline at end of file From 38c9f23a3eda259b8fdf1f10e189ebae5ac6be4a Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Thu, 4 Oct 2018 09:23:34 -0700 Subject: [PATCH 7/7] adding a build badge --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e56a1477b6..09e87a7096 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# bids-specification \ No newline at end of file +# bids-specification + +[![Build Status](https://travis-ci.com/bids-standard/bids-specification.svg?branch=master)](https://travis-ci.com/bids-standard/bids-specification)