-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (28 loc) · 739 Bytes
/
Copy pathRakefile
File metadata and controls
35 lines (28 loc) · 739 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
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
require "standard/rake"
namespace :spec do
desc "Run tests with sqlite3 adapter"
task :sqlite do
ENV["DB_ADAPTER"] = "sqlite"
Rake::Task["spec"].execute
end
desc "Run tests with mysql2 adapter"
task :mysql do
ENV["DB_ADAPTER"] = "mysql"
Rake::Task["spec"].execute
end
desc "Run tests with postgresql adapter"
task :postgres do
ENV["DB_ADAPTER"] = "postgres"
Rake::Task["spec"].execute
end
desc "Run tests with all adapters"
task :all do
Rake::Task["spec:sqlite"].execute
Rake::Task["spec:mysql"].execute
Rake::Task["spec:postgres"].execute
end
end
task default: %i[spec standard]