Unverified Commit 11e8ed4e authored by Grégoire Paris's avatar Grégoire Paris

Merge remote-tracking branch 'origin/2.10.x' into 2.11.x

parents ecff8519 0ad4c165
...@@ -74,15 +74,14 @@ install: ...@@ -74,15 +74,14 @@ install:
$destination = "c:\tools\php\ext\php_pdo_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip" $destination = "c:\tools\php\ext\php_pdo_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip"
Invoke-WebRequest $source -OutFile $destination Invoke-WebRequest $source -OutFile $destination
7z x -y php_pdo_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip > $null 7z x -y php_pdo_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip > $null
$DLLVersion = (Invoke-WebRequest "https://pecl.php.net/rest/r/xdebug/stable.txt").Content $DLLVersion = (Invoke-WebRequest "https://pecl.php.net/rest/r/pcov/stable.txt").Content
$source = "https://xdebug.org/files/php_xdebug-$($DLLVersion)-$($env:php)-vc15-nts-x86_64.dll" Invoke-WebRequest https://windows.php.net/downloads/pecl/releases/pcov/$($DLLVersion)/php_pcov-$($DLLVersion)-7.3-nts-vc15-$($env:platform).zip -OutFile pcov.zip
$destination = "c:\tools\php\ext\php_xdebug.dll" 7z x -y pcov.zip > $null
Invoke-WebRequest $source -OutFile $destination
Remove-Item c:\tools\php\* -include .zip Remove-Item c:\tools\php\* -include .zip
cd c:\tools\php cd c:\tools\php
Add-Content php.ini "`nextension=php_sqlsrv.dll" Add-Content php.ini "`nextension=php_sqlsrv.dll"
Add-Content php.ini "`nextension=php_pdo_sqlsrv.dll" Add-Content php.ini "`nextension=php_pdo_sqlsrv.dll"
Add-Content php.ini "`nzend_extension=php_xdebug.dll" Add-Content php.ini "`nextension=php_pcov.dll"
Add-Content php.ini "`n" Add-Content php.ini "`n"
# download Composer # download Composer
...@@ -123,8 +122,12 @@ test_script: ...@@ -123,8 +122,12 @@ test_script:
$env:phpunit_config = "tests\appveyor\$($env:db).$($env:driver).appveyor.xml" $env:phpunit_config = "tests\appveyor\$($env:db).$($env:driver).appveyor.xml"
} }
vendor\bin\phpunit -c $($env:phpunit_config) vendor\bin\phpunit -c $($env:phpunit_config) --coverage-clover clover.xml
if ($LastExitCode -ne 0) { if ($LastExitCode -ne 0) {
$host.SetShouldExit($LastExitCode) $host.SetShouldExit($LastExitCode)
} }
after_test:
- appveyor DownloadFile https://codecov.io/bash -FileName codecov.sh
- bash codecov.sh -f clover.xml
coverage_clover: clover.xml
json_path: /tmp/coveralls-upload.json
...@@ -8,12 +8,7 @@ cache: ...@@ -8,12 +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
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar --output-document="${HOME}/bin/coveralls"
chmod +x ${HOME}/bin/coveralls
fi
before_script: before_script:
- | - |
...@@ -26,25 +21,17 @@ install: ...@@ -26,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_script: after_success:
- | - bash <(curl -s https://codecov.io/bash)
if [ "x$COVERAGE" == "xyes" ]; then
travis_retry coveralls -v
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
...@@ -85,44 +72,44 @@ jobs: ...@@ -85,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:
...@@ -130,29 +117,29 @@ jobs: ...@@ -130,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"
...@@ -160,13 +147,13 @@ jobs: ...@@ -160,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
...@@ -174,7 +161,7 @@ jobs: ...@@ -174,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
...@@ -182,7 +169,7 @@ jobs: ...@@ -182,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
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
|:----------------:|:----------:| |:----------------:|:----------:|
| [![Build status][Master image]][Master] | [![Build status][2.10 image]][2.10] | | [![Build status][Master image]][Master] | [![Build status][2.10 image]][2.10] |
| [![Build Status][ContinuousPHP image]][ContinuousPHP] | [![Build Status][ContinuousPHP 2.10 image]][ContinuousPHP] | | [![Build Status][ContinuousPHP image]][ContinuousPHP] | [![Build Status][ContinuousPHP 2.10 image]][ContinuousPHP] |
| [![Code Coverage][Coverage image]][Coveralls Master] | [![Code Coverage][Coverage 2.10 image]][Coveralls 2.10] | | [![Code Coverage][Coverage image]][CodeCov Master] | [![Code Coverage][Coverage 2.10 image]][CodeCov 2.10] |
| [![AppVeyor][AppVeyor master image]][AppVeyor master] | [![AppVeyor][AppVeyor 2.10 image]][AppVeyor 2.10] | | [![AppVeyor][AppVeyor master image]][AppVeyor master] | [![AppVeyor][AppVeyor 2.10 image]][AppVeyor 2.10] |
Powerful database abstraction layer with many features for database schema introspection, schema management and PDO abstraction. Powerful database abstraction layer with many features for database schema introspection, schema management and PDO abstraction.
...@@ -16,18 +16,18 @@ Powerful database abstraction layer with many features for database schema intro ...@@ -16,18 +16,18 @@ Powerful database abstraction layer with many features for database schema intro
* [Issue Tracker](https://github.com/doctrine/dbal/issues) * [Issue Tracker](https://github.com/doctrine/dbal/issues)
[Master image]: https://img.shields.io/travis/doctrine/dbal/master.svg?style=flat-square [Master image]: https://img.shields.io/travis/doctrine/dbal/master.svg?style=flat-square
[Coverage image]: https://coveralls.io/repos/github/doctrine/dbal/badge.svg?branch=master [Coverage image]: https://codecov.io/gh/doctrine/dbal/branch/master/graph/badge.svg
[ContinuousPHP image]: https://img.shields.io/continuousphp/git-hub/doctrine/dbal/master.svg?style=flat-square [ContinuousPHP image]: https://img.shields.io/continuousphp/git-hub/doctrine/dbal/master.svg?style=flat-square
[Master]: https://travis-ci.org/doctrine/dbal [Master]: https://travis-ci.org/doctrine/dbal
[Coveralls Master]: https://coveralls.io/github/doctrine/dbal?branch=master [CodeCov Master]: https://codecov.io/gh/doctrine/dbal/branch/master
[AppVeyor master]: https://ci.appveyor.com/project/doctrine/dbal/branch/master [AppVeyor master]: https://ci.appveyor.com/project/doctrine/dbal/branch/master
[AppVeyor master image]: https://ci.appveyor.com/api/projects/status/i88kitq8qpbm0vie/branch/master?svg=true [AppVeyor master image]: https://ci.appveyor.com/api/projects/status/i88kitq8qpbm0vie/branch/master?svg=true
[ContinuousPHP]: https://continuousphp.com/git-hub/doctrine/dbal [ContinuousPHP]: https://continuousphp.com/git-hub/doctrine/dbal
[2.10 image]: https://img.shields.io/travis/doctrine/dbal/2.10.x.svg?style=flat-square [2.10 image]: https://img.shields.io/travis/doctrine/dbal/2.10.x.svg?style=flat-square
[Coverage 2.10 image]: https://coveralls.io/repos/github/doctrine/dbal/badge.svg?branch=2.10.x [Coverage 2.10 image]: https://codecov.io/gh/doctrine/dbal/branch/2.10.x/graph/badge.svg
[ContinuousPHP 2.10 image]: https://img.shields.io/continuousphp/git-hub/doctrine/dbal/2.10.x.svg?style=flat-square [ContinuousPHP 2.10 image]: https://img.shields.io/continuousphp/git-hub/doctrine/dbal/2.10.x.svg?style=flat-square
[2.10]: https://github.com/doctrine/dbal/tree/2.10.x [2.10]: https://github.com/doctrine/dbal/tree/2.10.x
[Coveralls 2.10]: https://coveralls.io/github/doctrine/dbal?branch=2.10.x [CodeCov 2.10]: https://codecov.io/gh/doctrine/dbal/branch/2.10.x
[AppVeyor 2.10]: https://ci.appveyor.com/project/doctrine/dbal/branch/2.10.x [AppVeyor 2.10]: https://ci.appveyor.com/project/doctrine/dbal/branch/2.10.x
[AppVeyor 2.10 image]: https://ci.appveyor.com/api/projects/status/i88kitq8qpbm0vie/branch/2.10.x?svg=true [AppVeyor 2.10 image]: https://ci.appveyor.com/api/projects/status/i88kitq8qpbm0vie/branch/2.10.x?svg=true
...@@ -25,8 +25,8 @@ abstract class AbstractMySQLDriver implements Driver, ExceptionConverterDriver, ...@@ -25,8 +25,8 @@ abstract class AbstractMySQLDriver implements Driver, ExceptionConverterDriver,
/** /**
* {@inheritdoc} * {@inheritdoc}
* *
* @link http://dev.mysql.com/doc/refman/5.7/en/error-messages-client.html * @link https://dev.mysql.com/doc/refman/8.0/en/client-error-reference.html
* @link http://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html * @link https://dev.mysql.com/doc/refman/8.0/en/server-error-reference.html
*/ */
public function convertException($message, DriverException $exception) public function convertException($message, DriverException $exception)
{ {
......
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