changeset 119:740e905fce78

execute cobertura for bamboo builds
author smith@nwoca.org
date Sat, 03 Nov 2012 16:21:25 +0100
parents f84f1d5465c1
children 3c67618d33e2
files metrics.gradle
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/metrics.gradle	Thu Nov 01 21:18:20 2012 +0100
+++ b/metrics.gradle	Sat Nov 03 16:21:25 2012 +0100
@@ -77,10 +77,14 @@
                     coverageFormat = 'xml'
                 }
             }
-                        
+
+            if (gradle.bambooBuild) {
+                build.dependsOn 'cobertura'
+            }
+
         }
         
-        root.allprojects {
+        root.allprojects { 
  
             def thisProject = delegate     
             def usesGroovy = thisProject.configurations.any { it.name == 'groovy' } 
@@ -96,7 +100,7 @@
                     }                    
                 }
             }
-          
+         
         }
     }
 }
\ No newline at end of file