]> source.dussan.org Git - redmine.git/commitdiff
use environment variable for running independent tests (units etc.) in ci.rake
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Dec 2013 12:00:08 +0000 (12:00 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Dec 2013 12:00:08 +0000 (12:00 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12437 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/ci.rake

index a1455a1049b47e1a9112c2db3f36e872fd6906cd..945836162b590a62acdbaed649f31c08bf514e05 100644 (file)
@@ -28,7 +28,11 @@ namespace :ci do
 
   desc "Build Redmine"
   task :build do
-    Rake::Task["test"].invoke
+    if test_suite = ENV['TEST_SUITE']
+      Rake::Task["test:#{test_suite}"].invoke
+    else
+      Rake::Task["test"].invoke
+    end
     # Rake::Task["test:ui"].invoke if RUBY_VERSION >= '1.9.3'
   end