summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-07-27 12:18:26 -0700
committerAndre Arko <andre@arko.net>2015-07-27 13:04:40 -0700
commit4b2450281b7f121f702c5471c51e2ab2367b89c0 (patch)
tree860e03583384ac40fa2b9655986953ff519d4525
parentcbe34f18fa36bf8bab19169d8a29a7b2b16e9bf3 (diff)
downloadbundler-rubocop-first.tar.gz
Fail fast if RuboCop task failsrubocop-first
-rw-r--r--Rakefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 0216f002a1..b7898f9500 100644
--- a/Rakefile
+++ b/Rakefile
@@ -238,8 +238,10 @@ begin
task :travis do
rg = ENV["RGV"] || raise("Rubygems version is required on Travis!")
- 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 }
+ 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 }
@@ -256,7 +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 }
- { "rubocop" => rubocop, "specs" => specs, "sudo" => sudos, "realworld" => realworld }.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