Skip to content

Commit 34b38dc

Browse files
committed
Add markdownfmt .travis.yml to enforce more consistent Markdown formatting
1 parent f219e7c commit 34b38dc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: go
2+
3+
sudo: false
4+
5+
install:
6+
- mkdir -p "${GOPATH%%:*}/src/github.com/shurcooL/markdownfmt"
7+
- git clone https://github.com/tianon/markdownfmt.git "${GOPATH%%:*}/src/github.com/shurcooL/markdownfmt"
8+
- go get -v github.com/shurcooL/markdownfmt
9+
10+
script:
11+
- files="$(find -name '*.md' -print0 | xargs -0 markdownfmt -l)";
12+
if [ "$files" ]; then
13+
echo >&2 "$files";
14+
exit 1;
15+
fi

0 commit comments

Comments
 (0)