summaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-21 12:00:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-21 12:00:08 +0000
commit2db5fc1a66a15f54218fd0b477447d34f4d11e4b (patch)
tree1c0fcbc9cfa4318ccbedf9e4d21b28f28767cede /lib/tasks
parentbea821166dbe9fe3b751bf9e7a5bb04dca06cd86 (diff)
downloadredmine-2db5fc1a66a15f54218fd0b477447d34f4d11e4b.tar.gz
redmine-2db5fc1a66a15f54218fd0b477447d34f4d11e4b.zip
use environment variable for running independent tests (units etc.) in ci.rake
git-svn-id: http://svn.redmine.org/redmine/trunk@12437 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/ci.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake
index a1455a104..945836162 100644
--- a/lib/tasks/ci.rake
+++ b/lib/tasks/ci.rake
@@ -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