Skip to content

Commit

Permalink
PoC: Run Rubocop in parallel at Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jun 21, 2018
1 parent 4a87d28 commit 3af8342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -15,7 +15,9 @@ env:
# only rubocop
- CMD='yast-travis-ruby -o rubocop'
# the rest, -y uses "rake check:doc" instead of plain "yardoc"
- CMD='yast-travis-ruby -y -x tests -x rubocop'
- CMD='time yast-travis-ruby -y -x tests -x rubocop'
# parallel rubocop - just for testing, add it to the yast-travis-ruby script
- CMD='rubocop -L | time xargs -P`nproc` -n$(expr `rubocop -L | wc -l` / `nproc` + 1) rubocop'

script:
# the "yast-travis-ruby" script is included in the base yastdevel/ruby image
Expand Down

0 comments on commit 3af8342

Please sign in to comment.