-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
34 lines (28 loc) · 633 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
# encoding: UTF-8
namespace :prepare do
task :bundle do
if ENV['CI']
sh %(bundle install --path=.bundle --jobs 1 --retry 3 --verbose)
else
sh %(bundle install --path .bundle)
end
end
end
desc 'Install required gems'
task prepare: ['prepare:bundle']
namespace :style do
task :rubocop do
sh %(chef exec rubocop)
end
end
desc 'Run all style checks'
task style: ['style:rubocop']
namespace :travis do
desc 'Run tests on Travis CI'
task :ci do
sh %(bundle exec rubocop)
end
end
# The default rake task should just run it all
desc 'Install required gems'
task default: %w(prepare style)