Add markdownfmt .travis.yml to enforce more consistent Markdown formatting

This commit is contained in:
Tianon Gravi 2015-02-12 11:41:12 -07:00
parent f219e7c8b9
commit 34b38dc22d
1 changed files with 15 additions and 0 deletions

15
.travis.yml Normal file
View File

@ -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