Skip to content

Commit

Permalink
Codecoverage (#136)
Browse files Browse the repository at this point in the history
* For code coverage.

For code coverage.

* Add Flags for Concov Reports.

* Update YML for coditional submit

Update YML for coditional submit coverage report

* set branch dev .

As master do not have code coverage yml we will keep default branch as
dev.
  • Loading branch information
v-nisidh committed Feb 6, 2017
1 parent feb6a2a commit f0213a5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Expand Up @@ -20,5 +20,11 @@ before_script:

script:
- docker ps -a
- mvn test -B -Pbuild41
- mvn test -B -Pbuild42

##Test for JDBC Specification 41 & 42 and submit coverage report.
- mvn test -B -Pbuild41 jacoco:report && bash <(curl -s https://codecov.io/bash) -cF JDBC41
- mvn test -B -Pbuild42 jacoco:report && bash <(curl -s https://codecov.io/bash) -cF JDBC42

#after_success:
# instead of after success we are using && operator for conditional submitting coverage report.
# - bash <(curl -s https://codecov.io/bash)
7 changes: 7 additions & 0 deletions codecov.yml
@@ -0,0 +1,7 @@
codecov:
branch: dev
notify:
require_ci_to_pass: false
coverage:
range: "10...100"
comment:
20 changes: 20 additions & 0 deletions pom.xml
Expand Up @@ -224,6 +224,26 @@
</executions>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>

0 comments on commit f0213a5

Please sign in to comment.