lib/tasks/check.rake in hexx-suit-0.1.0 vs lib/tasks/check.rake in hexx-suit-0.2.0

- old
+ new

@@ -1,32 +1,19 @@ namespace :check do + list = %w(coverage:run rubocop:run fu:run yardstick:run) + list = ["pippi:run", list].flatten if USE_PIPPI_METRIC desc "Runs all tests and code metrics" - task run: %w( - pippi:run - coverage:run - rubocop:run - fu:run - yardstick:run - ) + task run: list + list = %w(coverage:display rubocop:display fu:display inch yardstick:display) + list = ["pippi:display", list].flatten if USE_PIPPI_METRIC desc "Displays results of last run for any metric" - task display: %w( - pippi:display - coverage:display - rubocop:display - fu:display - inch - yardstick:display - ) + task display: list end +list = %w(check:coverage check:rubocop check:fu check:inch check:yardstick) +if USE_PIPPI_METRIC + list = ["check:pippi:configure", list, "check:pippi:display"].flatten +end desc "Runs all tests and code metrics and displays their results" -task check: %w( - check:pippi:configure - check:coverage - check:rubocop - check:fu - check:pippi:display - check:inch - check:yardstick -) +task check: list