Skip to content

Commit

Permalink
Add Yardstick
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed May 9, 2014
1 parent ecb2d10 commit 1d8762f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tmtags
## PROJECT::GENERAL
Gemfile.lock
coverage
measurement
rdoc
pkg

Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ source 'https://rubygems.org'
gem 'rake'

group :test do
gem 'backports'
gem 'coveralls', :require => false
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
gem 'rspec', '>= 2.14'
gem 'rubocop', '>= 0.19', :platforms => [:ruby_19, :ruby_20, :ruby_21]
gem 'simplecov', :require => false
gem 'yardstick'
end

case version = ENV['MONGOID_VERSION'] || '~> 3.1'
Expand Down
13 changes: 12 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@ rescue LoadError
end
end

task :default => [:spec, :rubocop]
require 'yardstick/rake/measurement'
Yardstick::Rake::Measurement.new do |measurement|
measurement.output = 'measurement/report.txt'
end

require 'yardstick/rake/verify'
Yardstick::Rake::Verify.new do |verify|
verify.require_exact_threshold = false
verify.threshold = 53.3
end

task :default => [:spec, :rubocop, :verify_measurements]

0 comments on commit 1d8762f

Please sign in to comment.