Skip to content

Commit

Permalink
Merge pull request #689 from cucumber/fix_travis_lint
Browse files Browse the repository at this point in the history
Fix travis.yml lint task
  • Loading branch information
mvz authored Jan 2, 2020
2 parents b38d173 + fe1298b commit 35aa647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,8 @@ RSpec::Core::RakeTask.new
namespace :lint do
desc 'Lint our .travis.yml'
task :travis do
begin
require 'travis/yaml'

puts 'Linting .travis.yml ... No output is good!'
Travis::Yaml.parse! File.read('.travis.yml')
rescue LoadError => e
$stderr.puts "You ruby is not supported for linting the .travis.yml: #{e.message}"
end
puts 'Linting .travis.yml ...'
sh 'travis lint'
end

desc 'Lint our code with "rubocop"'
Expand Down
2 changes: 1 addition & 1 deletion aruba.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ to make testing commandline applications meaningful, easy and fun.'
spec.add_development_dependency 'rubocop', '~> 0.78.0'
spec.add_development_dependency 'rubocop-performance', '~> 1.5'
spec.add_development_dependency 'simplecov', '~> 0.17.1'
spec.add_development_dependency 'travis-yaml', '~> 0.2.0'
spec.add_development_dependency 'travis', '~> 1.8'
spec.add_development_dependency 'yard-junk', '~> 0.0.7'

spec.rubygems_version = '>= 1.6.1'
Expand Down

0 comments on commit 35aa647

Please sign in to comment.