Add support build_canceled status

This commit is contained in:
Vladimir Sharshov 2011-10-30 17:44:45 +04:00
parent 68ae986fde
commit bc23b9d44e
2 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class BuildList < ActiveRecord::Base
BuildServer::PLATFORM_PENDING,
BuildServer::PROJECT_NOT_FOUND,
BuildServer::PROJECT_VERSION_NOT_FOUND,
BUILD_CANCELED,
TEST_FAILD]
HUMAN_STATUSES = { BuildServer::BUILD_ERROR => :build_error,
@ -43,7 +44,8 @@ class BuildList < ActiveRecord::Base
BuildServer::PLATFORM_PENDING => :platform_pending,
BuildServer::PROJECT_NOT_FOUND => :project_not_found,
BuildServer::PROJECT_VERSION_NOT_FOUND => :project_version_not_found,
TEST_FAILD => :testing_faild
TEST_FAILD => :testing_faild,
BUILD_CANCELED => :build_canceled
}
scope :recent, order("created_at DESC")

View File

@ -263,6 +263,7 @@ ru:
waiting_for_response: ожидает ответа
build_pending: ожидает сборку
testing_faild: тестирование не пройдено
build_canceled: сборка отменена
success: собран
build_started: собирается
platform_not_found: платформа не найдена