Unverified Commit 0ad4c165 authored by Grégoire Paris's avatar Grégoire Paris Committed by GitHub

Merge pull request #4053 from greg0ire/make-coverage-unconditional-on-travis

Report coverage unconditionally on Travis
parents 87aad2f6 6c83f5a8
...@@ -8,10 +8,7 @@ cache: ...@@ -8,10 +8,7 @@ cache:
before_install: before_install:
- phpenv config-rm xdebug.ini || true - phpenv config-rm xdebug.ini || true
- | - pecl install pcov
if [ "x$COVERAGE" == "xyes" ]; then
pecl install pcov-1.0.0
fi
before_script: before_script:
- | - |
...@@ -24,25 +21,17 @@ install: ...@@ -24,25 +21,17 @@ install:
- travis_retry composer -n install --prefer-dist - travis_retry composer -n install --prefer-dist
script: script:
- | - ./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml --coverage-clover clover.xml
if [ "x$COVERAGE" == "xyes" ]; then
./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml --coverage-clover clover.xml
else
./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml
fi
after_success: after_success:
- | - bash <(curl -s https://codecov.io/bash)
if [ "x$COVERAGE" == "xyes" ]; then
bash <(curl -s https://codecov.io/bash)
fi
jobs: jobs:
include: include:
- stage: Smoke Testing - stage: Smoke Testing
php: 7.3 php: 7.3
env: DB=sqlite COVERAGE=yes env: DB=sqlite
- stage: Test - stage: Test
php: 7.2 php: 7.2
...@@ -83,44 +72,44 @@ jobs: ...@@ -83,44 +72,44 @@ jobs:
- bash ./tests/travis/install-mssql.sh - bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mysql.docker IMAGE=mysql:5.7 COVERAGE=yes env: DB=mysql.docker IMAGE=mysql:5.7
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mysql.docker IMAGE=mysql:8.0 COVERAGE=yes env: DB=mysql.docker IMAGE=mysql:8.0
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mysqli.docker IMAGE=mysql:5.7 COVERAGE=yes env: DB=mysqli.docker IMAGE=mysql:5.7
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mysqli.docker IMAGE=mysql:8.0 COVERAGE=yes env: DB=mysqli.docker IMAGE=mysql:8.0
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mariadb.docker IMAGE=mariadb:10.0 COVERAGE=yes env: DB=mariadb.docker IMAGE=mariadb:10.0
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mariadb.docker IMAGE=mariadb:10.1 COVERAGE=yes env: DB=mariadb.docker IMAGE=mariadb:10.1
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mariadb.docker IMAGE=mariadb:10.2 COVERAGE=yes env: DB=mariadb.docker IMAGE=mariadb:10.2
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mariadb.docker IMAGE=mariadb:10.3 COVERAGE=yes env: DB=mariadb.docker IMAGE=mariadb:10.3
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mariadb.mysqli.docker IMAGE=mariadb:10.0 COVERAGE=yes env: DB=mariadb.mysqli.docker IMAGE=mariadb:10.0
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mariadb.mysqli.docker IMAGE=mariadb:10.1 COVERAGE=yes env: DB=mariadb.mysqli.docker IMAGE=mariadb:10.1
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mariadb.mysqli.docker IMAGE=mariadb:10.2 COVERAGE=yes env: DB=mariadb.mysqli.docker IMAGE=mariadb:10.2
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=mariadb.mysqli.docker IMAGE=mariadb:10.3 COVERAGE=yes env: DB=mariadb.mysqli.docker IMAGE=mariadb:10.3
- stage: Test - stage: Test
dist: trusty dist: trusty
php: 7.3 php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=9.2 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=9.2
services: services:
- postgresql - postgresql
addons: addons:
...@@ -128,29 +117,29 @@ jobs: ...@@ -128,29 +117,29 @@ jobs:
- stage: Test - stage: Test
dist: trusty dist: trusty
php: 7.3 php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=9.3 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=9.3
services: services:
- postgresql - postgresql
addons: addons:
postgresql: "9.3" postgresql: "9.3"
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=9.4 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=9.4
addons: addons:
postgresql: "9.4" postgresql: "9.4"
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=9.5 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=9.5
addons: addons:
postgresql: "9.5" postgresql: "9.5"
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=9.6 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=9.6
addons: addons:
postgresql: "9.6" postgresql: "9.6"
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=10.0 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=10.0
sudo: required sudo: required
addons: addons:
postgresql: "10" postgresql: "10"
...@@ -158,13 +147,13 @@ jobs: ...@@ -158,13 +147,13 @@ jobs:
- bash ./tests/travis/install-postgres-10.sh - bash ./tests/travis/install-postgres-10.sh
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=11.0 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required sudo: required
before_script: before_script:
- bash ./tests/travis/install-postgres-11.sh - bash ./tests/travis/install-postgres-11.sh
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=sqlsrv COVERAGE=yes env: DB=sqlsrv
sudo: required sudo: required
before_script: before_script:
- bash ./tests/travis/install-sqlsrv-dependencies.sh - bash ./tests/travis/install-sqlsrv-dependencies.sh
...@@ -172,7 +161,7 @@ jobs: ...@@ -172,7 +161,7 @@ jobs:
- bash ./tests/travis/install-mssql.sh - bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=pdo_sqlsrv COVERAGE=yes env: DB=pdo_sqlsrv
sudo: required sudo: required
before_script: before_script:
- bash ./tests/travis/install-sqlsrv-dependencies.sh - bash ./tests/travis/install-sqlsrv-dependencies.sh
...@@ -180,7 +169,7 @@ jobs: ...@@ -180,7 +169,7 @@ jobs:
- bash ./tests/travis/install-mssql.sh - bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
php: 7.3 php: 7.3
env: DB=ibm_db2 COVERAGE=yes env: DB=ibm_db2
sudo: required sudo: required
before_script: before_script:
- bash ./tests/travis/install-db2.sh - bash ./tests/travis/install-db2.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment