module Hoe::Travis
def travis_yml_check path
def travis_yml_check path require 'travis/lint' travis_yml = YAML.load_file path issues = Travis::Lint::Linter.validate travis_yml return true if issues.empty? issues.each do |issue| warn "There is an issue with the key #{issue[:key].inspect}:" warn "\t#{issue[:issue]}" end false rescue *YAML_EXCEPTIONS => e warn "invalid YAML in travis.yml file at #{path}: #{e.message}" return false end