egonSchiele / contracts.ruby

Contracts for Ruby.
http://egonschiele.github.com/contracts.ruby
BSD 2-Clause "Simplified" License
1.44k stars 82 forks source link

Travis: Create a separate RuboCop "Build Stage" #271

Closed olleolleolle closed 6 years ago

olleolleolle commented 6 years ago

This PR makes RuboCop run in a Travis Build Stage before the testing begins.

See Travis' docs for examples of Build Stage matrix expansion usage.

This change enables us to upgrade to the very latest RuboCop, which is supported on Ruby 2+. (Beyond the scope of this PR.)

olleolleolle commented 6 years ago

There's probably a couple more splits that could be done; Build Stages have not yielded all its useful secrets yet!

olleolleolle commented 6 years ago

Hrm, I need to execute a string as a shell command. I'll get to the bottom of this!

olleolleolle commented 6 years ago

With the help of a trusted friend, I smote the dragon of complexity, cutting the size of the configuration and also of the CI matrix!

egonSchiele commented 6 years ago

Thanks for filing all these PRs! Awesome to have these contributions! 👍