Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix travis.yml lint task #689

Merged
merged 1 commit into from
Jan 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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