forked from omniauth/omniauth-identity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (33 loc) · 1008 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
# frozen_string_literal: true
require 'bundler/gem_tasks'
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:test)
couch_potato = RSpec::Core::RakeTask.new(:spec_orm_couch_potato)
couch_potato.pattern = 'spec_orms/couch_potato_spec.rb'
mongoid = RSpec::Core::RakeTask.new(:spec_orm_mongoid)
mongoid.pattern = 'spec_orms/mongoid_spec.rb'
nobrainer = RSpec::Core::RakeTask.new(:spec_orm_nobrainer)
nobrainer.pattern = 'spec_orms/nobrainer_spec.rb'
# When running all tests you must have RethinkDB, CouchDB, and MongoDB running. See README.md
task spec: %i[
test
spec_orm_couch_potato
spec_orm_mongoid
spec_orm_nobrainer
]
rescue LoadError
task :test do
warn 'RSpec is disabled'
end
end
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
rescue LoadError
task :rubocop do
warn 'RuboCop is disabled'
end
end
# These tests do not require any services to be running, so this is what we run via Github Actions
task default: %i[test]