Skip to content

Commit

Permalink
Merge pull request #553 from juliosueiras/master
Browse files Browse the repository at this point in the history
Link Checker with Travis
  • Loading branch information
sikaozhe1997 authored Apr 25, 2018
2 parents 789b3b0 + 0352931 commit 8dfa91d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install:
- npm install -g markdown-link-check
script:
- bash ./check_links.sh
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/sikaozhe1997/Xin-Yue.svg?branch=master)](https://travis-ci.org/sikaozhe1997/Xin-Yue)

# 岳昕:致北大师生与北大外国语学院的一封公开信
北京大学的老师和同学:
你们好!
Expand Down
11 changes: 11 additions & 0 deletions check_links.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

res_code=0
for markdown in *.md; do
markdown-link-check "$markdown"
if [ $? -ne 0 ]; then
res_code=1
fi
done

exit $res_code

0 comments on commit 8dfa91d

Please sign in to comment.