Show spellchecker output if spellchecker task fails (#573)

This commit is contained in:
Pavel Lobashov 2019-05-24 19:17:43 +03:00 committed by Alexey Golubev
parent 54fa12bd0c
commit 1717bf6e46

View file

@ -17,4 +17,7 @@ jobs:
- npm install -g markdownlint-cli - npm install -g markdownlint-cli
- markdownlint CHANGELOG.md - markdownlint CHANGELOG.md
- stage: spellcheck - stage: spellcheck
script: if [[ $(cat CHANGELOG.md | aspell --lang=en --encoding=utf-8 --personal=./.aspell.en.pws list | wc -l) -ne 0 ]]; then exit 1 ; fi script:
- SPELLCHECK_OUT=$(cat CHANGELOG.md | aspell --lang=en --encoding=utf-8 --personal=./.aspell.en.pws list)
- echo $SPELLCHECK_OUT
- if [[ $(echo -n $SPELLCHECK_OUT | wc -c) -ne 0 ]]; then exit 1 ; fi