Skip to content

Commit

Permalink
Docs: minimum score a part of the CI article
Browse files Browse the repository at this point in the history
  - fixed a spelling error
  • Loading branch information
olleolleolle committed Nov 4, 2016
1 parent efdafa5 commit 51ad881
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/building-own-code-climate.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ Under `Build Triggers` select `Build when a change is pushed to GitHub`, and sta
Finally, click the `Save` button to save your job configuration. You can try out your build right away by clicking the `Build Now` button.
### Failing fast: the `--minimum-score` option
The CLI option `--minimum-score` makes `rubycritic` return the exit status according to the calculated score: it returns an error exit status if the score is below the set minimum. A helpful message is also printed. This allows your CI job to fail on too-low scores.
## Setting Up A GitHub Service
The last step is to set up GitHub integration so that a push triggers a new job in the Build Server. You’ll need admin access to your project's repository to be able to change its settings. On the repository page navigate to `Settings`, `Webhooks & Services` and click the `Add service` button. Select the `Jenkins (GitHub plugin)` options and set the `Jenkins hook url`.
Expand Down
2 changes: 1 addition & 1 deletion features/command_line_interface/minimum_score.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: Break if overall score is bellow minimum
Feature: Break if overall score is below minimum
In order to break the Continuous Integration builds based on a score threshold
RubyCritic returns the exit status according with the score

Expand Down

0 comments on commit 51ad881

Please sign in to comment.