Skip to content

Commit

Permalink
Adjust metrics and travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Mar 16, 2014
1 parent 438d297 commit 40c5248
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
language: ruby
rvm:
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- jruby-19mode
- rbx-19mode
- jruby-head
- rbx
- ruby-head
- jruby-head
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
notifications:
email:
recipients:
- arne@arnebrasseur.net
on_success: never
on_failure: change
script: bundle exec rake ci:metrics
script: bundle exec rake ci:travis
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ Devtools.init_rake_tasks

$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)

namespace :ci do
desc 'Run metrics (except mutant, rubocop) and spec'
task travis: %w[
metrics:coverage
spec:integration
metrics:yardstick:verify
metrics:flog
metrics:flay
]
# metrics:reek
# metrics:rubocop
end

RSpec::Core::RakeTask.new(:spec)
task :default => :spec

Expand Down
4 changes: 2 additions & 2 deletions config/flay.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
threshold: 0
total_score: 0
threshold: 11
total_score: 184
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

SimpleCov.start do
command_name 'spec:unit'
minimum_coverage 86.22
minimum_coverage 72.64
end
end

Expand Down

0 comments on commit 40c5248

Please sign in to comment.