Class: Appraisal::TravisCIHelper
- Inherits:
-
Object
- Object
- Appraisal::TravisCIHelper
show all
- Defined in:
- lib/appraisal/travis_ci_helper.rb
Defined Under Namespace
Classes: ConfigurationValidator
Constant Summary
collapse
- NO_CONFIGURATION_WARNING =
" Note: Run `appraisal generate --travis` to generate Travis CI\n configuration.\n".strip.gsub(/\s+/, " ")
- INVALID_CONFIGURATION_WARNING =
" Warning: Your gemfiles directive in .travis.yml is incorrect. Run\n `appraisal generate --travis` to get the correct configuration.\n".strip.gsub(/\s+/, " ")
- GEMFILES_CONFIGURATION_KEY =
"gemfile".freeze
Class Method Summary
collapse
Class Method Details
.display_instruction ⇒ Object
19
20
21
22
23
24
25
26
|
# File 'lib/appraisal/travis_ci_helper.rb', line 19
def self.display_instruction
puts "# Put this in your .travis.yml"
puts "#{GEMFILES_CONFIGURATION_KEY}:"
AppraisalFile.each do |appraisal|
puts " - #{appraisal.relative_gemfile_path}"
end
end
|
.validate_configuration_file ⇒ Object
28
29
30
|
# File 'lib/appraisal/travis_ci_helper.rb', line 28
def self.validate_configuration_file
ConfigurationValidator.new.validate
end
|