Merge pull request #812 from warpc/extra-changes-for-massbuild
MassBuild: support new build system
This commit is contained in:
commit
92c96e9500
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue