Skip to content

Commit c96b7d4

Browse files
author
bmarkons
committedJul 3, 2017
Use setup Gemfile for setup script
1 parent 27bb52d commit c96b7d4

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed
 

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ rails/log/
33
Gemfile.lock
44
sequel/vendor/
55
sequel/log/
6+
support/setup/vendor
67

‎sequel/.bundle/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
BUNDLE_PATH: vendor/bundle
3-
BUNDLE_DISABLE_SHARED_GEMS: true
2+
BUNDLE_PATH: "vendor/bundle"
3+
BUNDLE_DISABLE_SHARED_GEMS: "true"

‎sequel/benchmarks/support/benchmark_sequel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require_relative '../../../support/benchmark_runner'
2-
require_relative '../../../support/helpers.rb'
2+
require_relative '../../../support/helpers'
33

44
module Benchmark
55
module Sequel

‎support/helpers.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ def db_adapter
33
end
44

55
def db_setup(script:)
6-
`cd ../support/setup && DATABASE_URL=#{ENV.fetch("DATABASE_URL")} ruby #{script}`
6+
Dir.chdir("../support/setup") do
7+
p `DATABASE_URL=#{ENV.fetch("DATABASE_URL")} BUNDLE_GEMFILE=Gemfile ruby #{script}`
8+
end
79
end

‎support/setup/.bundle/config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
BUNDLE_DISABLE_SHARED_GEMS: "true"
3+
BUNDLE_PATH: "vendor/bundle"

0 commit comments

Comments
 (0)
Please sign in to comment.