Merge pull request #812 from warpc/extra-changes-for-massbuild

MassBuild: support new build system
This commit is contained in:
Vladimir Sharshov 2012-12-25 09:13:35 -08:00
commit 92c96e9500
2 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class MassBuild < ActiveRecord::Base
list = (missed_projects_list || '') << "#{name}\n"
update_column :missed_projects_list, list
end
sleep 1
sleep 1 unless new_core
end
end
later :build_all, :queue => :clone_build

View File

@ -137,6 +137,8 @@ class Project < ActiveRecord::Base
main_rep_id = platform.repositories.find_by_name('main').try(:id)
build_reps_ids = [main_rep_id, repository_id].compact.uniq
project_version = repo.commits("#{platform.name}").try(:first).try(:id) ?
"latest_#{platform.name}" : "latest_master"
build_list = build_lists.build do |bl|
bl.save_to_platform = platform
bl.build_for_platform = platform