forked from ephracis/appatite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (27 loc) · 925 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'config/application'
Rails.application.load_tasks
YARD::Rake::YardocTask.new do |t|
t.files = ['app/**/*.rb', 'lib/**/*.rb']
t.options = ['--output-dir', 'doc/api']
end
unless Rails.env.production?
require 'rubocop/rake_task'
require 'haml_lint/rake_task'
require 'yamllint/rake_task'
RuboCop::RakeTask.new
HamlLint::RakeTask.new do |t|
# t.config = 'path/to/custom/haml-lint.yml'
t.files = %w(app/views/**/*.haml)
# t.quiet = true # Don't display output from haml-lint
end
YamlLint::RakeTask.new do |t|
t.paths = %w(**/*.yaml **/*.yml)
end
desc 'Run code style checks'
task lint: %w(rubocop yamllint)
desc 'Run all CI tests'
task ci: %w(rubocop teaspoon spec)
task default: [:lint, :test]
end