File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
elasticsearch-persistence Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace :bundle do
1818 gemfiles = ENV [ 'RAILS_VERSIONS' ] ? ENV [ 'RAILS_VERSIONS' ] . split ( ',' ) . map { |v | "#{ v } .gemfile" } : GEMFILES
1919 gemfiles . each do |gemfile |
2020 puts "GEMFILE: #{ gemfile } "
21- Bundler . with_clean_env do
21+ Bundler . with_unbundled_env do
2222 sh "bundle install --gemfile #{ File . expand_path ( '../gemfiles/' +gemfile , __FILE__ ) } "
2323 end
2424 puts '-' * 80
Original file line number Diff line number Diff line change 2323namespace :bundle do
2424 desc 'Install gem dependencies'
2525 task :install do
26- puts '-' * 80
27- Bundler . with_clean_env do
26+ puts '-' * 80
27+ Bundler . with_unbundled_env do
2828 sh 'bundle install'
2929 end
30- puts '-' * 80
30+ puts '-' * 80
3131 end
3232end
3333
Original file line number Diff line number Diff line change 11require "bundler/gem_tasks"
22
33desc "Run unit tests"
4- task : default => 'test:unit'
5- task : test => 'test:unit'
4+ task default : 'test:unit'
5+ task test : 'test:unit'
66
77# ----- Test tasks ------------------------------------------------------------
88
99require 'rake/testtask'
1010require 'rspec/core/rake_task'
1111
1212namespace :test do
13-
1413 RSpec ::Core ::RakeTask . new ( :spec )
1514
1615 Rake ::TestTask . new ( :all ) do |test |
1716 test . verbose = false
1817 test . warning = false
19- test . deps = [ :spec ] unless defined? ( JRUBY_VERSION )
18+ test . deps = [ :spec ] unless defined? ( JRUBY_VERSION )
2019 end
2120end
2221
2322namespace :bundle do
2423 desc 'Install gem dependencies'
2524 task :install do
26- puts '-' * 80
27- Bundler . with_clean_env do
25+ puts '-' * 80
26+ Bundler . with_unbundled_env do
2827 sh 'bundle install'
2928 end
30- puts '-' * 80
29+ puts '-' * 80
3130 end
3231end
3332
You can’t perform that action at this time.
0 commit comments