Permalink
Browse files

[ADAM-1403] Push coverage reports to Coveralls.

Resolves #1403.
  • Loading branch information...
fnothaft committed Feb 25, 2017
1 parent 0fee9a4 commit 36ea4ace2e4a556e6fbcc8eb05eb86291add5ad7
Showing with 43 additions and 1 deletion.
  1. +23 −0 pom.xml
  2. +20 −1 scripts/jenkins-test
View
23 pom.xml
@@ -660,6 +660,29 @@
</plugins>
</build>
</profile>
<profile>
<id>coveralls</id>
<build>
<plugins>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<coberturaReports>
<param>${project.build.directory}/cobertura.xml</param>
</coberturaReports>
<sourceDirectories>
<param>adam-core/src/main/scala</param>
<param>adam-core/src/main/java</param>
<param>adam-apis/src/main/scala</param>
<param>adam-cli/src/main/scala</param>
</sourceDirectories>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Only sign artifacts when we are performing a release, not snapshots -->
<profile>
<id>sonatype-oss-release</id>
View
@@ -100,10 +100,29 @@ mvn clean \
-Dhadoop.version=${HADOOP_VERSION} \
-Dspark.version=${SPARK_VERSION}
# if this is a pull request, we need to set the coveralls pr id
if [[ ! -z $ghprbPullId ]];
then
COVERALLS_PRB_OPTION="-DpullRequest=${ghprbPullId}"
fi
# coveralls token should not be visible
set +x +v
if [[ -z ${COVERALLS_REPO_TOKEN} ]];
then
echo "Coveralls token is not set. Exiting..."
exit 1
fi
# if those pass, build the distribution package and the integration tests
mvn -U \
test \
-P coverage scoverage:report
-P coverage,coveralls scoverage:report coveralls:report \
-DrepoToken=${COVERALLS_REPO_TOKEN} ${COVERALLS_PRB_OPTION}
# make verbose again
set -x -v
# if those pass, build the distribution package
mvn -U \

0 comments on commit 36ea4ac

Please sign in to comment.