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

Move rubocop into a separate stage in travis ci #2510

Merged
2 commits merged into from Dec 5, 2018

Conversation

colby-swandale
Copy link
Member

@colby-swandale colby-swandale commented Dec 5, 2018

Description:

TIL it's now possible to use multiple stages in Travis-CI while using the rvm matrix. With that, this PR moves rubocop into it's own stage - before any tests are executed. This should provide faster feedback to contributors and make a clear separation between linting and tests.

Here's an example build (this failed because it was a custom build that didn't have the changes to run rubocop by itself). The build for this PR should use the separate stages as well.


Tasks:

  • Describe the problem / feature
  • Write tests
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

@bronzdoc
Copy link
Member

bronzdoc commented Dec 5, 2018

@bundlerbot r+

ghost pushed a commit that referenced this pull request Dec 5, 2018
2510: Move rubocop into a separate stage in travis ci r=bronzdoc a=colby-swandale

# Description:

TIL it's now possible to use multiple stages in Travis-CI while using the `rvm` matrix. With that, this PR moves rubocop into it's own stage - before any tests are executed. This should provide faster feedback to contributors and make a clear separation between linting and tests.

Here's an [example build](https://travis-ci.org/rubygems/rubygems/builds/463775265) (this failed because it was a custom build that didn't have the changes to run rubocop by itself). The build for this PR should use the separate stages as well.
______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: Colby Swandale <me@colby.fyi>
@ghost
Copy link

ghost commented Dec 5, 2018

Build succeeded

@ghost ghost merged commit 8606abb into master Dec 5, 2018
@ghost ghost deleted the colby/travis-rubocop-build-stage branch December 5, 2018 15:04
ghost pushed a commit to rubygems/bundler that referenced this pull request Dec 6, 2018
6830: move rubocop into a separate stage in Travis-CI r=deivid-rodriguez a=colby-swandale

## Overview

This PR is pretty much a copy of rubygems/rubygems#2510. It moves rubocop into a separate stage that is run before any tests are executed. This will allow for faster feedback and mean that we don't have to run rubocop on all our available instances in Travis.

Co-authored-by: Colby Swandale <me@colby.fyi>
This pull request was closed.
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.

None yet

2 participants