1
0
mirror of https://github.com/ru-de/faq.git synced 2024-11-22 18:32:19 +00:00

check broken links

This commit is contained in:
Evgeniy Sokolov 2017-01-12 14:16:03 +01:00
parent 65d6fdd833
commit 64879c57bb
2 changed files with 12 additions and 0 deletions

View File

@ -8,7 +8,17 @@ before_install:
- cat .dict_page | grep -oP -f .current_release | wget -q -i - -O dictionary.otx - cat .dict_page | grep -oP -f .current_release | wget -q -i - -O dictionary.otx
- unzip dictionary.otx - unzip dictionary.otx
- git config core.quotepath false - 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: script:
- cat broken_links.log
- sh files/.travis.sh - sh files/.travis.sh
notifications: notifications:

View File

@ -27,3 +27,5 @@
Женский чат в Skype: https://join.skype.com/mA676LOZb1Eg Женский чат в Skype: https://join.skype.com/mA676LOZb1Eg
Группа «ИТ Берлин» в Facebook: https://www.facebook.com/groups/itberlin/ Группа «ИТ Берлин» в Facebook: https://www.facebook.com/groups/itberlin/
test