Only running simplecov if RUBY_VERSION is 1.9 or greater, and COVERAGE env is set to 'true'
This commit is contained in:
		
							parent
							
								
									914f1e834d
								
							
						
					
					
						commit
						607b4c84fd
					
				| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
require 'simplecov'
 | 
			
		||||
SimpleCov.start do
 | 
			
		||||
  add_filter "/test/"
 | 
			
		||||
if RUBY_VERSION > '1.9' && ENV["COVERAGE"] == "true"
 | 
			
		||||
  require 'simplecov'
 | 
			
		||||
  require 'simplecov-gem-adapter'
 | 
			
		||||
  SimpleCov.start('gem')
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
require 'rubygems'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue