Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: RuboCop as a Build Stage before tests run #873

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

olleolleolle
Copy link
Member

@olleolleolle olleolleolle commented Feb 25, 2019

Description

This PR frontloads RuboCop checks onto the default Rake task.

This PR adds a TravisCI Build Stage linting, which installs rubocop and runs it.

If that stage fails, no virtual machines with the RSpec tests are even booted.

We use this way, in order to keep up with latest RuboCop releases, since CodeClimate's built-in is a good few versions behind.

@olleolleolle
Copy link
Member Author

See #870 for comparison.

@olleolleolle olleolleolle force-pushed the add-ci-check branch 4 times, most recently from 47b33fb to 80359c0 Compare February 25, 2019 20:35
Copy link
Member

@technoweenie technoweenie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like the separate Travis build step. I'd remove the rubocop check in codeclimate too, since it runs on an old version of rubocop.

@olleolleolle olleolleolle changed the title RuboCop as default check CI: RuboCop as a Build Stage before tests run Feb 25, 2019
@olleolleolle
Copy link
Member Author

Full disclosure: CodeClimate runs "channels" of versions of RuboCop:

https://github.com/codeclimate/codeclimate-rubocop/branches/all?utf8=%E2%9C%93&query=channel%2Frubocop

This allows one to pick a version family, using the channel setting in the CodeClimate configuration.

@olleolleolle
Copy link
Member Author

The furious pace of RuboCop releases is hard to keep up with – also for CodeClimate. 0.64 is the latest of their Channels. 0.65.0 is the latest RuboCop release.

  - disable the not-always recent CodeClimate RuboCop plugin
@olleolleolle olleolleolle merged commit 281e3f4 into lostisland:master Feb 25, 2019
@olleolleolle olleolleolle deleted the add-ci-check branch February 25, 2019 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants