-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
39 lines (32 loc) · 943 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
# frozen_string_literal: true
require_relative "spec/support/rubygems_ext"
require "bundler/gem_tasks"
desc "Run specs"
task :spec do
sh("bin/rspec")
end
namespace :dev do
desc "Ensure dev dependencies are installed"
task :deps do
Spec::Rubygems.dev_setup
end
desc "Ensure dev dependencies are installed, and make sure no lockfile changes are generated"
task frozen_deps: :deps do
Spec::Rubygems.check_source_control_changes(
success_message: "Development dependencies were installed and the lockfile is in sync",
error_message: "Development dependencies were installed but the lockfile is out of sync. " \
"Commit the updated lockfile and try again"
)
end
end
namespace :spec do
desc "Ensure spec dependencies are installed"
task deps: "dev:deps" do
Spec::Rubygems.install_test_deps
end
end
desc "Run rubocop"
task :rubocop do
sh "bin/rubocop"
end
task default: %i[spec rubocop]