-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
42 lines (32 loc) · 845 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
36
37
38
39
40
41
42
# frozen_string_literal: true
require "rake"
require "rake/clean"
require "rspec/core/rake_task"
require "rubocop/rake_task"
begin
require "bundler/setup"
Bundler::GemHelper.install_tasks
rescue LoadError
puts "although not required, bundler is recommened for running the tests"
end
RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new do |task|
task.requires << "rubocop-rake"
end
CLOBBER.include(FileList["./*.gem"])
namespace :loco_sync do
desc "Updates RubyGems, installs dependencies"
task :install do
puts "Running bundle install"
sh "gem update --system"
sh "bundle"
end
desc "Builds the gem"
task :build do
puts "Building"
sh "gem build loco_sync.gemspec"
end
end
task rubospec: %w(rubocop spec)
task full_build: %w(clobber loco_sync:install loco_sync:build)
task default: :full_build