Browse Source

Add way to re-enable clover.

pull/14/head
Chris Smith 9 years ago
parent
commit
7789663efa
3 changed files with 18 additions and 1 deletions
  1. 16
    0
      README.md
  2. 1
    1
      clover.gradle
  3. 1
    0
      gradle.properties

+ 16
- 0
README.md View File

@@ -41,3 +41,19 @@ tests in the project:
41 41
 
42 42
 [Currently the gradle scripts do not generate a functioning client... we're
43 43
  working on that still!]
44
+
45
+Miscellaneous
46
+--------------------------------------------------------------------------------
47
+
48
+### Running Clover
49
+
50
+Clover is disabled by default as it requires a license file we can't distribute.
51
+When running clover tasks, the build script will try and download our license
52
+from a private webserver. If your IP isn't whitelisted you will need to supply
53
+a username/password.
54
+
55
+To enable clover, set the enableClover property to a true-ish value:
56
+
57
+    ./gradlew -PenableClover=1 cloverAggregateReports
58
+
59
+This will place a HTML report in `build/reports/clover/html`.

+ 1
- 1
clover.gradle View File

@@ -15,7 +15,7 @@ allprojects {
15 15
     apply plugin: 'clover'
16 16
 
17 17
     clover {
18
-        includeTasks = ['none']
18
+        includeTasks = rootProject.enableClover ? [] : ['none']
19 19
 
20 20
         licenseLocation = "$rootDir/etc/clover/clover.license"
21 21
 

+ 1
- 0
gradle.properties View File

@@ -0,0 +1 @@
1
+enableClover=false

Loading…
Cancel
Save