From: Michael D. Lowis Date: Sat, 30 Aug 2014 00:11:10 +0000 (-0400) Subject: hopefully fix CI? X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=608b408da94a23969a8228c14e120fb72995fb66;p=projs%2Flibcds.git hopefully fix CI? --- 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