/* * Copyright 2000-2010 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jetbrains.buildServer.rakerunner; import org.jetbrains.annotations.NonNls; /** * @author Roman Chernyatchik */ public interface RakeRunnerConstants { // After updating config verson please also update settings converter (in RakeRunnerRunType) // and update config verson in settings edit ui (taskRunnerRunParams.jsp). Last one is needed for correct conversion // if user copied old-style build configuration and then updated some settings in it. @NonNls String CURRENT_CONFIG_VERSION = "2"; @NonNls String RUNNER_TYPE = "rake-runner"; @NonNls String AGENT_BUNDLE_JAR = "rake-runner.jar"; // Server properties // task name @NonNls String SERVER_UI_RAKE_TASKS_PROPERTY = "ui.rakeRunner.rake.tasks.names"; @NonNls String RAKE_MODE_KEY = "TEAMCITY_RAKE_RUNNER_MODE"; @NonNls String RAKE_MODE_BUILDSERVER = "buildserver"; // trace/invoke @NonNls String SERVER_UI_RAKE_TRACE_INVOKE_EXEC_STAGES_ENABLED = "ui.rakeRunner.rake.trace.invoke.exec.stages.enabled"; @NonNls String RAKE_TRACE_INVOKE_EXEC_STAGES_ENABLED_KEY = "TEAMCITY_RAKE_TRACE"; // Additional CMD params @NonNls String SERVER_UI_RAKE_ADDITIONAL_CMD_PARAMS_PROPERTY = "ui.rakeRunner.additional.rake.cmd.params"; // Explicit Ruby interpreter lpath @NonNls String SERVER_UI_RUBY_INTERPRETER = "ui.rakeRunner.ruby.interpreter"; @NonNls String SERVER_UI_RUBY_RVM_GEMSET_NAME = "ui.rakeRunner.ruby.rvm.gemset"; // Enable rake output capturer @NonNls String SERVER_UI_RAKE_OUTPUT_CAPTURER_ENABLED = "ui.rakeRunner.rake.output.capturer.enabled"; // Test Frameworks // Test::Unit @NonNls String SERVER_UI_RAKE_TESTUNIT_ENABLED_PROPERTY = "ui.rakeRunner.frameworks.testunit.enabled"; // RSpec @NonNls String SERVER_UI_RAKE_RSPEC_ENABLED_PROPERTY = "ui.rakeRunner.frameworks.rspec.enabled"; @NonNls String SERVER_UI_RAKE_RSPEC_OPTS_PROPERTY = "ui.rakeRunner.rspec.specoptions"; @NonNls String RAKE_RSPEC_OPTS_PARAM_NAME = "SPEC_OPTS"; // Test-Spec @NonNls String SERVER_UI_RAKE_TESTSPEC_ENABLED_PROPERTY = "ui.rakeRunner.frameworks.testspec.enabled"; // Shoulda @NonNls String SERVER_UI_RAKE_SHOULDA_ENABLED_PROPERTY = "ui.rakeRunner.frameworks.shoulda.enabled"; // Cucumber @NonNls String SERVER_UI_RAKE_CUCUMBER_ENABLED_PROPERTY = "ui.rakeRunner.frameworks.cucumber.enabled"; @NonNls String SERVER_UI_RAKE_CUCUMBER_OPTS_PROPERTY = "ui.rakeRunner.cucumber.options"; @NonNls String RAKE_CUCUMBER_OPTS_PARAM_NAME = "CUCUMBER_OPTS"; @NonNls String SERVER_CONFIGURATION_VERSION_PROPERTY = "ui.rakeRunner.config.version"; // Agent properties: // Custom rake tasks runner script @NonNls String CUSTOM_RAKERUNNER_SCRIPT = "system.teamcity.rake.runner.custom.runner"; // Teamcity Rake Runner Debug and logs @NonNls String DEBUG_PROPERTY = "system.teamcity.rake.runner.debug.mode"; // Test-Unit gem version if not latest is reuiqred @NonNls String TEST_UNIT_GEM_VERSION_PROPERTY = "system.teamcity.rake.runner.gem.testunit.version"; // SDK hack @NonNls String RUBYLIB_ENVIRONMENT_VARIABLE = "RUBYLIB"; @NonNls String ORIGINAL_SDK_AUTORUNNER_PATH_KEY = "TEAMCIY_RAKE_TU_AUTORUNNER_PATH"; @NonNls String ORIGINAL_SDK_TESTRUNNERMEDIATOR_PATH_KEY = "TEAMCITY_RAKE_TU_TESTRUNNERMADIATOR_PATH"; // Rake @NonNls String RAKE_CMDLINE_OPTIONS_RAKEFILE = "--rakefile"; // Attached frameworks @NonNls String RAKERUNNER_USED_FRAMEWORKS_KEY = "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"; }