File: Rakefile

package info (click to toggle)
ruby-unparser 0.4.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 564 kB
  • sloc: ruby: 4,630; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'devtools'
Devtools.init_rake_tasks

Rake.application.load_imports
task('metrics:mutant').clear

namespace :metrics do
  task mutant: :coverage do
    args = %w[
      bundle exec mutant
      --ignore-subject Unparser::Buffer#initialize
      --include lib
      --require unparser
      --use rspec
      --zombie
      --since HEAD~1
    ]
    args.concat(%w[--jobs 4]) if ENV.key?('CIRCLECI')

    system(*args.concat(%w[-- Unparser*])) or fail "Mutant task failed"
  end
end