소스 검색

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

Tianon Gravi 11 년 전
부모
커밋
34b38dc22d
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      .travis.yml

+ 15 - 0
.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