Skip to content

Commit

Permalink
test: add coverage to java 7
Browse files Browse the repository at this point in the history
This PR adds coverage to Java 7 build and ignore the coverage for the failing test of
extendedCacheEverything.

Add a check for break the build if the after_n_builds don't match COVERAGE jobs.
  • Loading branch information
jorsol committed Dec 5, 2017
1 parent 405f14e commit 0729568
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -3,6 +3,7 @@ language: java
dist: trusty

before_script:
- test $(grep "after_n_builds" codecov.yml | tr -d '[:space:]' | cut -d":" -f2) -eq $(grep -e "COVERAGE=Y$" .travis.yml | wc -l) || exit 1
- export PG_DATADIR="/etc/postgresql/${PG_VERSION}/main"
- ./.travis/travis_install_postgres.sh
- test "x$XA" == 'x' || ./.travis/travis_configure_xa.sh
Expand Down Expand Up @@ -67,7 +68,7 @@ matrix:
- env: # REMOVE FAILURE extendedCacheEverything
- PG_VERSION=9.4
- QUERY_MODE=extendedCacheEverything
- COVERAGE=Y
- COVERAGE=N
include:
- jdk: oraclejdk8
env: RUN_CHECKSTYLE=true
Expand Down Expand Up @@ -121,7 +122,7 @@ matrix:
env:
- PG_VERSION=9.4
- QUERY_MODE=extendedCacheEverything
- COVERAGE=Y
- COVERAGE=N
- jdk: openjdk7
sudo: required
addons:
Expand All @@ -130,6 +131,7 @@ matrix:
- PG_VERSION=9.2
- ZULU_JDK=7
- MCENTRAL=Y
- COVERAGE=Y
- jdk: openjdk6
sudo: required
addons:
Expand Down

0 comments on commit 0729568

Please sign in to comment.