diff options
author | Homu <homu@barosl.com> | 2015-07-28 07:44:11 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2015-07-28 07:44:11 +0900 |
commit | bccaa40bb2c433e555233761114ae509c75d128e (patch) | |
tree | 860e03583384ac40fa2b9655986953ff519d4525 | |
parent | 0433b83757cf8e5e424221f8752bf59b1ac5d693 (diff) | |
parent | 4b2450281b7f121f702c5471c51e2ab2367b89c0 (diff) | |
download | bundler-bccaa40bb2c433e555233761114ae509c75d128e.tar.gz |
Auto merge of #3884 - bundler:rubocop-first, r=indirect
Run Rubocop before specs
This fails faster on style issues.
-rw-r--r-- | Rakefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -238,6 +238,11 @@ begin task :travis do rg = ENV["RGV"] || raise("Rubygems version is required on Travis!") + if RUBY_VERSION > "1.9.3" + puts "\n\e[1;33m[Travis CI] Running bundler linter\e[m\n\n" + Rake::Task["rubocop"].invoke + end + puts "\n\e[1;33m[Travis CI] Running bundler specs against rubygems #{rg}\e[m\n\n" specs = safe_task { Rake::Task["spec:rubygems:#{rg}"].invoke } @@ -253,10 +258,7 @@ begin puts "\n\e[1;33m[Travis CI] Running bundler real world specs against rubygems #{rg}\e[m\n\n" realworld = safe_task { Rake::Task["spec:rubygems:#{rg}:realworld"].invoke } - puts "\n\e[1;33m[Travis CI] Running bundler linter\e[m\n\n" - rubocop = RUBY_VERSION < "1.9.3" || safe_task { Rake::Task["rubocop"].invoke } - - { "specs" => specs, "sudo" => sudos, "realworld" => realworld, "rubocop" => rubocop }.each do |name, passed| + { "specs" => specs, "sudo" => sudos, "realworld" => realworld }.each do |name, passed| if passed puts "\e[0;32m[Travis CI] #{name} passed\e[m" else |