forked from samvera-labs/active_encode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
38 lines (29 loc) · 883 Bytes
/
Rakefile
File metadata and controls
38 lines (29 loc) · 883 Bytes
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
36
37
38
require 'rake/clean'
require 'bundler'
require 'rubocop/rake_task'
Bundler::GemHelper.install_tasks
desc "CI build"
task ci: ["active_encode:adapters:clean", "active_encode:ci"]
desc "Rspec"
task spec: ["active_encode:ci"]
task default: [:ci]
namespace 'active_encode' do
task 'environment' do
ENV['environment'] = 'test'
end
desc "Check style guidelines"
RuboCop::RakeTask.new(:rubocop) do |task|
task.requires << 'rubocop-rspec'
task.fail_on_error = true
end
desc "CI build"
task ci: [:rubocop, "active_encode:environment", "active_encode:adapters:start", "active_encode:spec"]
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
namespace 'adapters' do
desc "Clean any local services needed by the adapters"
task 'clean' => []
desc "Start any local services needed by the adapters"
task 'start' => []
end
end