annotate .svn/pristine/dc/dcac5a29f794b90b0c70d7b180bb1c20ea9606aa.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 desc "Run the Continous Integration tests for Redmine"
Chris@909 2 task :ci do
Chris@909 3 # RAILS_ENV and ENV[] can diverge so force them both to test
Chris@909 4 ENV['RAILS_ENV'] = 'test'
Chris@909 5 RAILS_ENV = 'test'
Chris@909 6 Rake::Task["ci:setup"].invoke
Chris@909 7 Rake::Task["ci:build"].invoke
Chris@909 8 Rake::Task["ci:teardown"].invoke
Chris@909 9 end
Chris@909 10
Chris@909 11 # Tasks can be hooked into by redefining them in a plugin
Chris@909 12 namespace :ci do
Chris@909 13 desc "Setup Redmine for a new build."
Chris@909 14 task :setup do
Chris@909 15 Rake::Task["ci:dump_environment"].invoke
Chris@909 16 Rake::Task["db:create"].invoke
Chris@909 17 Rake::Task["db:migrate"].invoke
Chris@909 18 Rake::Task["db:schema:dump"].invoke
Chris@909 19 Rake::Task["test:scm:update"].invoke
Chris@909 20 end
Chris@909 21
Chris@909 22 desc "Build Redmine"
Chris@909 23 task :build do
Chris@909 24 Rake::Task["test"].invoke
Chris@909 25 end
Chris@909 26
Chris@909 27 # Use this to cleanup after building or run post-build analysis.
Chris@909 28 desc "Finish the build"
Chris@909 29 task :teardown do
Chris@909 30 end
Chris@909 31
Chris@909 32 desc "Dump the environment information to a BUILD_ENVIRONMENT ENV variable for debugging"
Chris@909 33 task :dump_environment do
Chris@909 34
Chris@909 35 ENV['BUILD_ENVIRONMENT'] = ['ruby -v', 'gem -v', 'gem list'].collect do |command|
Chris@909 36 result = `#{command}`
Chris@909 37 "$ #{command}\n#{result}"
Chris@909 38 end.join("\n")
Chris@909 39
Chris@909 40 end
Chris@909 41 end
Chris@909 42