mirror of
https://github.com/ru-de/faq.git
synced 2024-12-22 17:01:49 +00:00
check broken links
This commit is contained in:
parent
65d6fdd833
commit
64879c57bb
10
.travis.yml
10
.travis.yml
@ -8,7 +8,17 @@ before_install:
|
||||
- cat .dict_page | grep -oP -f .current_release | wget -q -i - -O dictionary.otx
|
||||
- unzip dictionary.otx
|
||||
- git config core.quotepath false
|
||||
- go get -u github.com/peterhellberg/serve
|
||||
- go get -u github.com/russross/blackfriday-tool
|
||||
- find *.md -exec blackfriday-tool {} {}.html \;
|
||||
- nohup serve -addr="0.0.0.0:80" >/dev/null 2>&1 &
|
||||
- git diff HEAD^ --name-status | grep "^D" -v | sed 's/^.\t//g' > changed_files_links
|
||||
- sed -i -e 's/^/http:\/\/localhost\//' changed_files_links
|
||||
- sed -i -e 's/$/.html/' changed_files_links
|
||||
- wget --spider -erobots=off -r -nd -nv -H -l 1 -o broken_links.log -i changed_files_links
|
||||
|
||||
script:
|
||||
- cat broken_links.log
|
||||
- sh files/.travis.sh
|
||||
|
||||
notifications:
|
||||
|
Loading…
Reference in New Issue
Block a user