summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-10-11 01:18:07 +0800
committerKyrylo Silin <silin@kyrylo.org>2018-10-11 02:39:22 +0800
commitb303372f97d3caa6372cc11df055662dcdcc1d08 (patch)
tree1205c71212943b0483724ee6c7a5d4edec5af1fc
parent30c6f3635b79c207debaf143da6621ed24d800e4 (diff)
downloadpry-b303372f97d3caa6372cc11df055662dcdcc1d08.tar.gz
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.
-rw-r--r--.travis.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 2696d141..858be910 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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"