Permalink
Browse files

test: track code coverage

closes #494
  • Loading branch information...
vlsi committed Jan 17, 2016
1 parent aea9383 commit 0f979c3bbe1a36e6614e3d448ea43de7be27448b
Showing with 30 additions and 10 deletions.
  1. +12 −4 .travis.yml
  2. +1 −1 pgjdbc/pom.xml
  3. +1 −1 pom.xml
  4. +16 −4 travis_build.sh
@@ -44,7 +44,9 @@ matrix:
- jdk: oraclejdk8
addons:
postgresql: "9.4"
env: PG_VERSION=9.4
env:
- PG_VERSION=9.4
- COVERAGE=Y
- jdk: openjdk7
addons:
postgresql: "9.4"
@@ -60,7 +62,9 @@ matrix:
- jdk: openjdk7
addons:
postgresql: "9.3"
env: PG_VERSION=9.3
env:
- PG_VERSION=9.3
- COVERAGE=Y
- jdk: openjdk6
addons:
postgresql: "9.3"
@@ -76,11 +80,15 @@ matrix:
- jdk: openjdk6
addons:
postgresql: "9.2"
env: PG_VERSION=9.2
env:
- PG_VERSION=9.2
- COVERAGE=Y
- jdk: oraclejdk8
addons:
postgresql: "9.1"
env: PG_VERSION=9.1
env:
- PG_VERSION=9.1
- COVERAGE=Y
- jdk: openjdk7
addons:
postgresql: "9.1"
@@ -5,7 +5,7 @@
<parent>
<groupId>org.postgresql</groupId>
<artifactId>pgjdbc-core-parent</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
<relativePath/>
</parent>
@@ -5,7 +5,7 @@
<parent>
<groupId>org.postgresql</groupId>
<artifactId>pgjdbc-versions</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
</parent>
<artifactId>pgjdbc-aggregate</artifactId>
@@ -3,21 +3,33 @@ set -x -e
# Build project
MVN_ARGS="clean package -B -V"
MVN_PROFILES="release"
if [[ "${COVERAGE}" == *"Y"* ]];
then
MVN_PROFILES="$MVN_PROFILES,coverage"
fi
if [[ "${TRAVIS_JDK_VERSION}" == *"jdk6"* ]];
then
git clone --depth=50 https://github.com/pgjdbc/pgjdbc-jre6.git pgjdbc-jre6
cd pgjdbc-jre6
mvn ${MVN_ARGS} -P release,skip-unzip-jdk
mvn ${MVN_ARGS} -P ${MVN_PROFILES},skip-unzip-jdk
elif [[ "${TRAVIS_JDK_VERSION}" == *"jdk7"* ]];
then
git clone --depth=50 https://github.com/pgjdbc/pgjdbc-jre7.git pgjdbc-jre7
cd pgjdbc-jre7
mvn ${MVN_ARGS} -P release,skip-unzip-jdk
mvn ${MVN_ARGS} -P ${MVN_PROFILES},skip-unzip-jdk
elif [ "${PG_VERSION}" == "9.4" ];
then
# Build javadocs for Java 8 and PG 9.4 only
mvn ${MVN_ARGS} -P release-artifacts,release
mvn ${MVN_ARGS} -P ${MVN_PROFILES},release-artifacts
else
mvn ${MVN_ARGS} -P release
mvn ${MVN_ARGS} -P ${MVN_PROFILES}
fi
if [[ "${COVERAGE}" == "Y" ]];
then
pip install --user codecov
codecov
fi

0 comments on commit 0f979c3

Please sign in to comment.