1
0
mirror of https://github.com/ru-de/faq.git synced 2024-11-08 19:51:01 +00:00
faq-de/.travis.yml

26 lines
1.3 KiB
YAML
Raw Normal View History

2016-01-14 15:36:55 +00:00
before_install:
- sudo apt-get -qq update
2016-01-19 09:54:34 +00:00
- sudo apt-get install -y hunspell hunspell-ru hunspell-en-us hunspell-de-de
2017-01-11 22:58:16 +00:00
- curl -s https://extensions.libreoffice.org/extensions/russian-spellcheck-dictionary.-based-on-works-of-aot-group > .dict_page
- cat .dict_page | grep -oP "<a href.+title=\"Current release for the project\"" | grep -oP "https://extensions.libreoffice.org/extensions/russian-spellcheck-dictionary.-based-on-works-of-aot-group/[^\"]+" > .current_release
- echo -n $(cat .current_release) > .current_release
- echo -n "/@@download[^\"]+" >> .current_release
- cat .dict_page | grep -oP -f .current_release | wget -q -i - -O dictionary.otx
2016-01-16 20:39:48 +00:00
- unzip dictionary.otx
2016-01-19 15:31:33 +00:00
- git config core.quotepath false
2017-01-12 13:16:03 +00:00
- 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
2016-01-14 14:46:56 +00:00
script:
2017-01-12 13:16:03 +00:00
- cat broken_links.log
2016-01-19 08:15:30 +00:00
- sh files/.travis.sh
2016-01-14 14:46:56 +00:00
notifications:
email: false