travis: generate docs and fail if there are warnings

The idea is extracted from https://github.com/pry/pry/pull/1720.

This ensures that documentation mistakes don't slip through the cracks in the
future.
This commit is contained in:
Kyrylo Silin 2018-10-11 01:18:07 +08:00
parent 30c6f3635b
commit b303372f97
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ matrix:
- rvm: 2.5
name: "Run RuboCop linting"
script: ruby -S bundle _1.15.4_ exec rubocop --parallel
- rvm: 2.5
name: "Run YARD linting"
script: ruby -S bundle _1.15.4_ exec yardoc --fail-on-warning --no-progress
notifications:
irc: "irc.freenode.org#pry"