Skip to content

Commit

Permalink
chore(coverage): migrate to codecov instead of coveralls.io
Browse files Browse the repository at this point in the history
The bug inside trautonen/coveralls-maven-plugin#102 prevent me from using coveralls.io
  • Loading branch information
davinkevin committed Aug 4, 2019
1 parent 4e5ba15 commit b35a300
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ stages:
image: openjdk:8
script:
- ./mvnw $MAVEN_CLI_OPTS -f backend/pom.xml liquibase:dropAll liquibase:update jooq-codegen:generate test -Ddatabase.url=jdbc:h2:/tmp/podcast-server jacoco:report
- ./mvnw $MAVEN_CLI_OPTS -f backend/pom.xml coveralls:report -DrepoToken=$COVERALLS_TOKEN
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
cache:
key: "$CI_PIPELINE_ID-backend"
policy: pull
Expand Down
22 changes: 7 additions & 15 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -476,21 +476,6 @@
<dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>
</configuration>
</plugin>
<!-- Code Coverage : publishing to Coveralls.io -->
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
<configuration>
<sourceDirectories>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>target/generated-sources/jooq</sourceDirectory>
<sourceDirectory>target/generated-sources/kapt/compile</sourceDirectory>
<sourceDirectory>target/classes</sourceDirectory>
</sourceDirectories>
</configuration>
</plugin>
<!-- Code Coverage : generating coverage Report -->
<plugin>
<groupId>org.jacoco</groupId>
Expand All @@ -510,6 +495,13 @@
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Test : Assertion Generation -->
Expand Down

0 comments on commit b35a300

Please sign in to comment.