after_script:
  - rake yard | tee yard.out
  - grep --silent '100.00% documented' yard.out
before_script:
  - cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
  - rake db:setup
language: ruby
rvm:
  - '1.9.3'
  - 'jruby-19mode'

before_script:
  - cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
  - rake db:setup
language: ruby
rvm:
  - '1.9.3'
  - 'jruby-19mode'
script:
  - bundle exec rake
  - bundle exec rake yard | tee yard.out
  - grep --silent '100.00% documented' yard.out

Move yard check to script
Move yard check to script

[#50752269]

Placing the yard check in the after_script: section did not cause the
build to fail.
