From 34b38dc22d96f076f64cf67cefe3dc39fe774c8f Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 12 Feb 2015 11:41:12 -0700 Subject: [PATCH] Add markdownfmt .travis.yml to enforce more consistent Markdown formatting --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..8b4c28167 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: go + +sudo: false + +install: + - mkdir -p "${GOPATH%%:*}/src/github.com/shurcooL/markdownfmt" + - git clone https://github.com/tianon/markdownfmt.git "${GOPATH%%:*}/src/github.com/shurcooL/markdownfmt" + - go get -v github.com/shurcooL/markdownfmt + +script: + - files="$(find -name '*.md' -print0 | xargs -0 markdownfmt -l)"; + if [ "$files" ]; then + echo >&2 "$files"; + exit 1; + fi