A small, lightweight and extensible DynDNS server written with Ruby and Rack.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
793 B

  1. # frozen_string_literal: true
  2. require 'bundler/gem_tasks'
  3. require 'rspec/core/rake_task'
  4. require 'rubocop/rake_task'
  5. require 'bundler/audit/task'
  6. RSpec::Core::RakeTask.new(:spec)
  7. RuboCop::RakeTask.new
  8. Bundler::Audit::Task.new
  9. desc 'Run experimental solargraph type checker'
  10. task :solargraph do
  11. sh 'solargraph typecheck'
  12. end
  13. namespace :solargraph do
  14. desc 'Should be run by developer once to prepare initial solargraph usage (fill caches etc.)'
  15. task :init do
  16. sh 'solargraph download-core'
  17. end
  18. end
  19. desc 'Run hadolint for Dockerfile linting'
  20. task :hadolint do
  21. sh 'docker run --rm -i hadolint/hadolint:v1.18.0 hadolint --ignore DL3018 - < docker/Dockerfile'
  22. end
  23. task default: [:rubocop, :spec, 'bundle:audit', :solargraph]
  24. task travis: ['solargraph:init', :default, :hadolint]