Skip to content

Commit

Permalink
parallelize rubocop and normal tests for speed and clarity on what broke
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed May 1, 2016
1 parent 82c5fab commit 24eaab1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -6,3 +6,7 @@ rvm:
- "2.3.0"
sudo: false
cache: bundler
script: bundle exec rake $TASK
env:
- TASK=test
- TASK=rubocop
7 changes: 6 additions & 1 deletion Rakefile
@@ -1,8 +1,13 @@
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubocop/rake_task'
require 'yaml'

task default: [:test, :rubocop]
travis =
YAML.load_file(Bundler.root.join('.travis.yml'))
.fetch('env')
.map { |v| v.delete('TASK=') }
task default: travis

Rake::TestTask.new do |t|
t.libs << 'test'
Expand Down

0 comments on commit 24eaab1

Please sign in to comment.