-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathGemfile-custom.sample
More file actions
41 lines (38 loc) · 928 Bytes
/
Gemfile-custom.sample
File metadata and controls
41 lines (38 loc) · 928 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
36
37
38
39
40
41
group :development do
# pacer-* gems are required for testing pacer.
# If you have the gem repos cloned locally, we'll use them.
#
[ 'pacer-titan', 'pacer-orient', 'pacer-dex' ].each do |lib|
if File.directory? "../#{lib}"
gem lib, :path => "../#{lib}"
end
end
# Neo4j versions are mutually incompatible
# To test Pacer against Neo4j 1.x when the neo2 gem is present, use:
#
# neo=1 bundle
# rspec
#
# To switch back, just use:
#
# bundle
# rspec
#
neo_test_ver = ENV.fetch('neo') do
if File.directory?("../pacer-neo4j2")
'2'
elsif File.directory?("../pacer-neo4j")
'1'
else
'0'
end
end
if neo_test_ver == '1'
gem 'pacer-neo4j', :path => "../pacer-neo4j"
elsif neo_test_ver == '2'
gem 'pacer-neo4j2', :path => "../pacer-neo4j2"
end
if File.directory? "../mcfly"
gem 'pacer-mcfly', :path => "../mcfly"
end
end