]> git.mdlowis.com Git - projs/libcds.git/commitdiff
Make coverage an independent task
authorMichael D. Lowis <mike.lowis@gentex.com>
Tue, 2 Sep 2014 15:54:07 +0000 (11:54 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Tue, 2 Sep 2014 15:54:07 +0000 (11:54 -0400)
Rakefile

index 67e6d4aef45923cb4e3ae9926ae66770674eb490..cdecb6272463afa29557a51ab4617bde19837530 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -35,7 +35,7 @@ at_exit { Env.process; TestEnv.process}
 #------------------------------------------------------------------------------
 # Main Build Targets
 #------------------------------------------------------------------------------
-task :default => [:test, :coverage, :build]
+task :default => [:test, :build]
 
 desc "Build the C Data Structures static library"
 task :build do
@@ -59,10 +59,7 @@ task :coverage => [:test] do
         obj  = gcno.ext('o')
         path = File.dirname(obj)
         gcov = File.basename(obj).ext('c.gcov')
-        #if File.exist?(gcno.ext('gcda'))
-        sh *['gcov', '-a', '-b', '-c', obj] and
-            FileUtils.mv("./#{gcov}","#{path}/#{gcov}")
-        #end
+        sh *['gcov', '-a', '-b', '-c', obj] and FileUtils.mv("./#{gcov}","#{path}/#{gcov}")
     end
 end