From 608b408da94a23969a8228c14e120fb72995fb66 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 29 Aug 2014 20:11:10 -0400 Subject: [PATCH] hopefully fix CI? --- Rakefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 1d4d432..92c0103 100644 --- a/Rakefile +++ b/Rakefile @@ -35,7 +35,7 @@ at_exit { Env.process; TestEnv.process} #------------------------------------------------------------------------------ # Main Build Targets #------------------------------------------------------------------------------ -task :default => [:test, :build] +task :default => [:test, :coverage, :build] desc "Build the C Data Structures static library" task :build do @@ -59,9 +59,10 @@ task :coverage => [:test] do obj = gcno.ext('o') path = File.dirname(obj) gcov = File.basename(obj).ext('c.gcov') - sh *['gcov', '-abc', obj] - FileUtils.cp("./#{gcov}","#{path}/#{gcov}") - FileUtils.rm(gcov) + if File.exist?(gcno.ext('gcda')) + sh *['gcov', '-a', '-b', '-c', obj] + FileUtils.mv("./#{gcov}","#{path}/#{gcov}") + end end end -- 2.49.0