title: Cobertura Checks Fail on Travis CI
body: <p>In my Maven build, I use Cobertura to check that there is a certain minimal coverage:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.5.2&lt;/version&gt;
      &lt;configuration&gt;
          &lt;check&gt;
              &lt;branchRate&gt;100&lt;/branchRate&gt;
          &lt;/check&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;cobertura&lt;/goal&gt;
                  &lt;goal&gt;check&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>When running <code>mvn install</code>, this works fine. However, in Travis CI, the build fails because Travis <a href="https://docs.travis-ci.com/user/languages/java#Dependency-Management" rel="nofollow">first runs</a> <code>mvn install -DskipTests=true</code> to get the dependencies. Obviously, when tests are skipped, there is no coverage, and therefore the whole build fails:</p>
  
  <pre><code>[ERROR] ch.trick17.betterchecks.fluent.StringCheck failed check. Branch coverage rate of 0.0% is below 100.0%
  ...
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  ...
  [ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.5.2:check (default) on project better-checks-core: Coverage check failed. See messages above. -&gt; [Help 1]
  </code></pre>
  
  <p>Can I somehow configure Cobertura to skip the check if tests are skipped? Or is there any other solution, maybe on the Travis side?</p>
  
  <hr>
  
  <p>Here is my <code>.travis.yml</code> file:</p>
  
  <pre><code>language: java
  
  jdk:
    - openjdk6
    - openjdk7
    - oraclejdk7
    - oraclejdk8
  
  script: "mvn install"
  </code></pre>