1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-22 10:54:23 +01:00

ci: add Dockerfile linting

This commit is contained in:
cn 2020-08-22 12:20:23 +02:00 committed by Christian Nicolai
parent 72c8dda7dd
commit 0de5078d9d
2 changed files with 18 additions and 8 deletions

View File

@ -6,5 +6,8 @@ rvm:
- 2.6 - 2.6
- 2.5 - 2.5
services:
- docker
script: script:
- bundle exec rake travis - bundle exec rake travis

View File

@ -9,16 +9,23 @@ RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new RuboCop::RakeTask.new
Bundler::Audit::Task.new Bundler::Audit::Task.new
desc 'Should be run by developer once to prepare initial solargraph usage (fill caches etc.)'
task :'solargraph:init' do
sh 'solargraph download-core'
end
desc 'Run experimental solargraph type checker' desc 'Run experimental solargraph type checker'
task :'solargraph:tc' do task :solargraph do
sh 'solargraph typecheck' sh 'solargraph typecheck'
end end
task default: [:rubocop, :spec, 'bundle:audit'] namespace :solargraph do
desc 'Should be run by developer once to prepare initial solargraph usage (fill caches etc.)'
task :init do
sh 'solargraph download-core'
end
end
task travis: [:default, :'solargraph:init', :'solargraph:tc'] desc 'Run hadolint for Dockerfile linting'
task :hadolint do
sh 'docker run --rm -i hadolint/hadolint:v1.18.0 hadolint --ignore DL3018 - < docker/Dockerfile'
end
task default: [:rubocop, :spec, 'bundle:audit', :solargraph]
task travis: ['solargraph:init', :default, :hadolint]