Skip to content

Commit

Permalink
Check documentation can be generated as part of CircleCI build
Browse files Browse the repository at this point in the history
The yardoc rake task will have a non-zero exit code if any errors or
warnings occur and thus the build would fail.
  • Loading branch information
floehopper committed Jun 25, 2021
1 parent 53a6ee3 commit b30d9a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ jobs:
value: << parameters.gemfile >>
steps:
- run: MOCHA_RUN_INTEGRATION_TESTS=test-unit bundle exec --gemfile=<< parameters.gemfile >> rake test
- when:
condition:
and:
- equal: [ "ruby:latest", << parameters.docker-image >> ]
- equal: [ "Gemfile", << parameters.gemfile >>]
steps:
- run: MOCHA_GENERATE_DOCS=1 bundle install --gemfile=<< parameters.gemfile >>
- run: MOCHA_GENERATE_DOCS=1 GOOGLE_ANALYTICS_WEB_PROPERTY_ID=dummy rake yardoc

workflows:
build-all:
Expand Down

0 comments on commit b30d9a9

Please sign in to comment.