Skip to content

Commit 24afb4f

Browse files
committed
Only run the in memory DB specs on CI
1 parent 6266950 commit 24afb4f

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

Rakefile

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,29 @@ require 'bundler/gem_tasks'
44

55
begin
66
require 'rspec/core/rake_task'
7-
primary = RSpec::Core::RakeTask.new(:spec)
8-
active_record = RSpec::Core::RakeTask.new(:spec_orm_active_record)
9-
active_record.pattern = 'spec_orms/active_record_spec.rb'
7+
RSpec::Core::RakeTask.new(:test)
108
couch_potato = RSpec::Core::RakeTask.new(:spec_orm_couch_potato)
119
couch_potato.pattern = 'spec_orms/couch_potato_spec.rb'
1210
mongoid = RSpec::Core::RakeTask.new(:spec_orm_mongoid)
1311
mongoid.pattern = 'spec_orms/mongoid_spec.rb'
1412
nobrainer = RSpec::Core::RakeTask.new(:spec_orm_nobrainer)
1513
nobrainer.pattern = 'spec_orms/nobrainer_spec.rb'
16-
sequel = RSpec::Core::RakeTask.new(:spec_orm_sequel)
17-
sequel.pattern = 'spec_orms/sequel_spec.rb'
14+
15+
# When running all tests you must have RethinkDB, CouchDB, and MongoDB running. See README.md
16+
task spec: %i[
17+
test
18+
spec_orm_couch_potato
19+
spec_orm_mongoid
20+
spec_orm_nobrainer
21+
]
1822
rescue LoadError
23+
task :test do
24+
warn 'RSpec is disabled'
25+
end
1926
task :spec do
2027
warn 'RSpec is disabled'
2128
end
2229
end
23-
task test: :spec
2430

2531
begin
2632
require 'rubocop/rake_task'
@@ -31,11 +37,6 @@ rescue LoadError
3137
end
3238
end
3339

34-
task default: %i[
35-
test
36-
spec_orm_active_record
37-
spec_orm_couch_potato
38-
spec_orm_mongoid
39-
spec_orm_nobrainer
40-
spec_orm_sequel
41-
]
40+
# These tests do not require any services to be running, so this is what we run via Github Actions
41+
task default: %i[test]
42+

0 commit comments

Comments
 (0)