Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Run specs in 1.8 and 1.9 mode by default.

Use rake spec18|spec19|spec20 to build and run the specs in the respective
language mode. Use ci18|ci19|ci20 to build and run the specs in the respective
language mode and rake clean and re-run if the first run has errors.
  • Loading branch information...
commit a276d22a99d584dd813c3722f19befbbebb056bf 1 parent 4d36772
@brixen brixen authored
Showing with 11 additions and 15 deletions.
  1. +11 −15 Rakefile
View
26 Rakefile
@@ -100,9 +100,7 @@ def run_specs(flags=nil)
sh "bin/mspec ci #{ENV['CI_MODE_FLAG'] || flags} --background --agent"
end
-task :default => %w[build vm:test] do
- run_specs
-end
+task :default => :spec
task :github do
cur = `git config remote.origin.url`.strip
@@ -132,26 +130,26 @@ def run_ci
end
desc "Run CI in default (configured) mode"
-task :ci do
+task :ci => %w[build vm:test] do
run_ci
end
# These tasks run the specs in the specified mode regardless of
# the default mode with which Rubinius was configured.
desc "Run CI in 1.8 mode"
-task :ci18 do
- ENV['CI_MODE_FLAG'] = "-T -X19=no"
+task :ci18 => %w[build vm:test] do
+ ENV['CI_MODE_FLAG'] = "-T -X18"
run_ci
end
desc "Run CI in 1.9 mode"
-task :ci19 do
+task :ci19 => %w[build vm:test] do
ENV['CI_MODE_FLAG'] = "-T -X19"
run_ci
end
desc "Run CI in 2.0 mode"
-task :ci20 do
+task :ci20 => %w[build vm:test] do
ENV['CI_MODE_FLAG'] = "-T -X20"
run_ci
end
@@ -202,24 +200,22 @@ task :docs do
end
desc "Run the CI specs in 1.8 mode but do not rebuild on failure"
-task :spec18 do
- run_specs "-T -X19=no"
+task :spec18 => %w[build vm:test] do
+ run_specs "-T -X18"
end
desc "Run the CI specs in 1.9 mode but do not rebuild on failure"
-task :spec19 do
+task :spec19 => %w[build vm:test] do
run_specs "-T -X19"
end
desc "Run the CI specs in 2.0 mode but do not rebuild on failure"
-task :spec20 do
+task :spec20 => %w[build vm:test] do
run_specs "-T -X20"
end
desc "Run CI in default (configured) mode but do not rebuild on failure"
-task :spec do
- run_specs
-end
+task :spec => %w[spec18 spec19]
desc "Print list of items marked to-do in kernel/ (@todo|TODO)"
task :todos do
Please sign in to comment.
Something went wrong with that request. Please try again.