summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-19 13:18:43 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-19 13:18:43 +0200
commitced6534bbe7107d6707cf10a074cde6099226014 (patch)
tree4e3e3af58a6f7da43bec2732ce888ddc996a93be /lib
parent135f7ddebe1ad813999703c4e90110abd5c3b59c (diff)
downloadgitlab-ci-ced6534bbe7107d6707cf10a074cde6099226014.tar.gz
Fix gem setup via ci
Diffstat (limited to 'lib')
-rw-r--r--lib/runner.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/runner.rb b/lib/runner.rb
index 50bbe76..00f1423 100644
--- a/lib/runner.rb
+++ b/lib/runner.rb
@@ -70,7 +70,12 @@ class Runner
@process.io.stdout = @tmp_file
@process.io.stderr = @tmp_file
@process.cwd = path
- @process.environment['BUNDLE_GEMFILE'] = ''
+
+ # ENV
+ @process.environment['BUNDLE_GEMFILE'] = File.join(path, 'Gemfile')
+ @process.environment['BUNDLE_BIN_PATH'] = ''
+ @process.environment['RUBYOPT'] = ''
+
@process.start
build.set_file @tmp_file.path