diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-09 10:36:31 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-09 10:36:31 +0000 |
commit | cb30868924d092d74a36ef8e5d0a5e7e8c09d48c (patch) | |
tree | 691098134ad59429d374ddc0b9474fcfed3c9a72 | |
parent | 8463d8b19ed7aae1a53e1ab07db2a7684ece4420 (diff) | |
parent | 0a3f4dfc8232a0314f2dce9b686a16070b6281cf (diff) | |
download | gitlab-ce-cb30868924d092d74a36ef8e5d0a5e7e8c09d48c.tar.gz |
Merge branch 'rc/cob-do-not-require-stackprof' into 'master'
Don't require stackprof in Gemfile
See merge request !13407
-rw-r--r-- | Gemfile | 2 | ||||
-rwxr-xr-x | bin/rspec-stackprof | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -355,7 +355,7 @@ group :development, :test do gem 'activerecord_sane_schema_dumper', '0.2' - gem 'stackprof', '~> 0.2.10' + gem 'stackprof', '~> 0.2.10', require: false end group :test do diff --git a/bin/rspec-stackprof b/bin/rspec-stackprof index df79feb201d..810863ea4a0 100755 --- a/bin/rspec-stackprof +++ b/bin/rspec-stackprof @@ -1,5 +1,6 @@ #!/usr/bin/env ruby +require 'bundler/setup' require 'stackprof' $:.unshift 'spec' require 'rails_helper' @@ -13,4 +14,4 @@ StackProf.run(mode: :wall, out: output_file, interval: interval) do RSpec::Core::Runner.run(ARGV, $stderr, $stdout) end -system("stackprof #{output_file} --text --limit #{limit}") +system("bundle exec stackprof #{output_file} --text --limit #{limit}") |