Class: Appraisal::TravisCIHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/appraisal/travis_ci_helper.rb

Defined Under Namespace

Classes: ConfigurationValidator

Constant Summary collapse

NO_CONFIGURATION_WARNING =
<<-WARNING.strip.gsub(/\s+/, " ")
  Note: Run `appraisal generate --travis` to generate Travis CI
  configuration.
WARNING
INVALID_CONFIGURATION_WARNING =
<<-WARNING.strip.gsub(/\s+/, " ")
  Warning: Your gemfiles directive in .travis.yml is incorrect. Run
  `appraisal generate --travis` to get the correct configuration.
WARNING
GEMFILES_CONFIGURATION_KEY =
"gemfile".freeze

Class Method Summary collapse

Class Method Details

.display_instructionObject



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_fileObject



28
29
30
# File 'lib/appraisal/travis_ci_helper.rb', line 28

def self.validate_configuration_file
  ConfigurationValidator.new.validate
end