Commit c9daea6f authored by Michael Moravec's avatar Michael Moravec Committed by Benjamin Morel

CI: Test against PHP 7.3 on Travis

Co-authored-by: 's avatarMichael Moravec <me@majkl.me>
Co-authored-by: 's avatarBenjamin Morel <benjamin.morel@gmail.com>
parent ff6cbdbc
......@@ -21,7 +21,7 @@ before_commands:
tools:
external_code_coverage:
timeout: 3600
runs: 22 # 18x Travis (jobs with COVERAGE=yes) + 3x AppVeyor (jobs with coverage=yes) + 1x ContinuousPHP
runs: 27 # 23x Travis (jobs with COVERAGE=yes) + 3x AppVeyor (jobs with coverage=yes) + 1x ContinuousPHP
filter:
excluded_paths:
......
......@@ -10,6 +10,7 @@ cache:
php:
- 7.1
- 7.2
- 7.3
- nightly
env:
......@@ -62,28 +63,52 @@ jobs:
env: DB=mysql
- php: 7.1
env: DB=mysqli
- php: 7.2
env: DB=sqlite
- php: 7.2
env: DB=mysql
- php: 7.2
env: DB=mysqli
- php: 7.3
env: DB=mysql
- php: 7.3
env: DB=mysqli
- php: nightly
env: DB=mysql
- php: nightly
env: DB=mysqli
include:
- stage: Test
php: 7.1
env: DB=sqlite
- stage: Test
php: 7.2
env: DB=sqlite COVERAGE=yes
- stage: Test
php: 7.1
php: 7.2
env: DB=mysql COVERAGE=yes
- stage: Test
php: 7.1
php: 7.2
env: DB=mysqli COVERAGE=yes
- stage: Test
php: 7.1
env: DB=mysql MYSQL_VERSION=5.7 COVERAGE=yes
env: DB=mysql MYSQL_VERSION=5.7
sudo: required
before_script:
- bash ./tests/travis/install-mysql-5.7.sh
- stage: Test
php: 7.2
env: DB=mysql MYSQL_VERSION=5.7 COVERAGE=yes
sudo: required
before_script:
- bash ./tests/travis/install-mysql-5.7.sh
- stage: Test
php: 7.3
env: DB=mysql MYSQL_VERSION=5.7
sudo: required
before_script:
......@@ -97,12 +122,18 @@ jobs:
- stage: Test
php: 7.1
env: DB=mysqli MYSQL_VERSION=5.7 COVERAGE=yes
env: DB=mysqli MYSQL_VERSION=5.7
sudo: required
before_script:
- bash ./tests/travis/install-mysql-5.7.sh
- stage: Test
php: 7.2
env: DB=mysqli MYSQL_VERSION=5.7 COVERAGE=yes
sudo: required
before_script:
- bash ./tests/travis/install-mysql-5.7.sh
- stage: Test
php: 7.3
env: DB=mysqli MYSQL_VERSION=5.7
sudo: required
before_script:
......@@ -114,194 +145,132 @@ jobs:
before_script:
- bash ./tests/travis/install-mysql-5.7.sh
- stage: Test
php: 7.1
env: DB=mariadb MARIADB_VERSION=10.0 COVERAGE=yes
addons:
mariadb: 10.0
- stage: Test
php: 7.2
env: DB=mariadb MARIADB_VERSION=10.0
addons:
mariadb: 10.0
- stage: Test
php: nightly
env: DB=mariadb MARIADB_VERSION=10.0
env: DB=mariadb MARIADB_VERSION=10.0 COVERAGE=yes
addons:
mariadb: 10.0
- stage: Test
php: 7.1
env: DB=mariadb MARIADB_VERSION=10.1 COVERAGE=yes
addons:
mariadb: 10.1
- stage: Test
php: 7.2
env: DB=mariadb MARIADB_VERSION=10.1
addons:
mariadb: 10.1
- stage: Test
php: nightly
env: DB=mariadb MARIADB_VERSION=10.1
env: DB=mariadb MARIADB_VERSION=10.1 COVERAGE=yes
addons:
mariadb: 10.1
- stage: Test
php: 7.1
php: 7.2
env: DB=mariadb MARIADB_VERSION=10.2 COVERAGE=yes
addons:
mariadb: 10.2
- stage: Test
php: 7.2
env: DB=mariadb MARIADB_VERSION=10.2
env: DB=mariadb.mysqli MARIADB_VERSION=10.0 COVERAGE=yes
addons:
mariadb: 10.2
mariadb: 10.0
- stage: Test
php: nightly
env: DB=mariadb MARIADB_VERSION=10.2
php: 7.2
env: DB=mariadb.mysqli MARIADB_VERSION=10.1 COVERAGE=yes
addons:
mariadb: 10.2
mariadb: 10.1
- stage: Test
php: 7.1
php: 7.2
env: DB=mariadb.mysqli MARIADB_VERSION=10.2 COVERAGE=yes
addons:
mariadb: 10.2
- stage: Test
php: 7.2
env: DB=mariadb.mysqli MARIADB_VERSION=10.2
php: 7.1
env: DB=mariadb MARIADB_VERSION=10.3
addons:
mariadb: 10.2
mariadb: 10.3
- stage: Test
php: nightly
env: DB=mariadb.mysqli MARIADB_VERSION=10.2
php: 7.2
env: DB=mariadb MARIADB_VERSION=10.3 COVERAGE=yes
addons:
mariadb: 10.2
mariadb: 10.3
- stage: Test
php: 7.2
php: 7.3
env: DB=mariadb MARIADB_VERSION=10.3
addons:
mariadb: 10.3
- stage: Test
php: 7.2
env: DB=mariadb.mysqli MARIADB_VERSION=10.3
php: nightly
env: DB=mariadb MARIADB_VERSION=10.3
addons:
mariadb: 10.3
- stage: Test
php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=9.2 COVERAGE=yes
services:
- postgresql
env: DB=mariadb.mysqli MARIADB_VERSION=10.3
addons:
postgresql: "9.2"
mariadb: 10.3
- stage: Test
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.2
services:
- postgresql
env: DB=mariadb.mysqli MARIADB_VERSION=10.3 COVERAGE=yes
addons:
postgresql: "9.2"
mariadb: 10.3
- stage: Test
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.2
services:
- postgresql
php: 7.3
env: DB=mariadb.mysqli MARIADB_VERSION=10.3
addons:
postgresql: "9.2"
mariadb: 10.3
- stage: Test
php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=9.3 COVERAGE=yes
services:
- postgresql
php: nightly
env: DB=mariadb.mysqli MARIADB_VERSION=10.3
addons:
postgresql: "9.3"
mariadb: 10.3
- stage: Test
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.3
env: DB=pgsql POSTGRESQL_VERSION=9.2 COVERAGE=yes
services:
- postgresql
addons:
postgresql: "9.3"
postgresql: "9.2"
- stage: Test
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.3
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.3 COVERAGE=yes
services:
- postgresql
addons:
postgresql: "9.3"
- stage: Test
php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=9.4 COVERAGE=yes
services:
- postgresql
addons:
postgresql: "9.4"
- stage: Test
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.4
services:
- postgresql
addons:
postgresql: "9.4"
- stage: Test
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.4
env: DB=pgsql POSTGRESQL_VERSION=9.4 COVERAGE=yes
services:
- postgresql
addons:
postgresql: "9.4"
- stage: Test
php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=9.5 COVERAGE=yes
services:
- postgresql
addons:
postgresql: "9.5"
- stage: Test
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.5
services:
- postgresql
addons:
postgresql: "9.5"
- stage: Test
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.5
env: DB=pgsql POSTGRESQL_VERSION=9.5 COVERAGE=yes
services:
- postgresql
addons:
postgresql: "9.5"
- stage: Test
php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=9.6 COVERAGE=yes
services:
- postgresql
addons:
postgresql: "9.6"
- stage: Test
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.6
services:
- postgresql
addons:
postgresql: "9.6"
- stage: Test
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.6
env: DB=pgsql POSTGRESQL_VERSION=9.6 COVERAGE=yes
services:
- postgresql
addons:
postgresql: "9.6"
- stage: Test
php: 7.1
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=10.0 COVERAGE=yes
sudo: required
services:
......@@ -310,29 +279,25 @@ jobs:
postgresql: "9.6"
before_script:
- bash ./tests/travis/install-postgres-10.sh
- stage: Test
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=10.0
php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required
services:
- postgresql
addons:
postgresql: "9.6"
- docker
before_script:
- bash ./tests/travis/install-postgres-10.sh
- bash ./tests/travis/install-postgres-11.sh
- stage: Test
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=10.0
php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=11.0 COVERAGE=yes
sudo: required
services:
- postgresql
addons:
postgresql: "9.6"
- docker
before_script:
- bash ./tests/travis/install-postgres-10.sh
- bash ./tests/travis/install-postgres-11.sh
- stage: Test
php: 7.1
php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required
services:
......@@ -340,23 +305,25 @@ jobs:
before_script:
- bash ./tests/travis/install-postgres-11.sh
- stage: Test
php: 7.2
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required
services:
- docker
before_script:
- bash ./tests/travis/install-postgres-11.sh
- stage: Test
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=11.0
php: 7.1
env: DB=sqlsrv
sudo: required
services:
- docker
before_script:
- bash ./tests/travis/install-postgres-11.sh
- bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh
- stage: Test
php: 7.2
env: DB=sqlsrv COVERAGE=yes
sudo: required
services:
......@@ -365,7 +332,16 @@ jobs:
- bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh
- stage: Test
php: 7.2
php: 7.3
env: DB=sqlsrv
sudo: required
services:
- docker
before_script:
- bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh
- stage: Test
php: nightly
env: DB=sqlsrv
sudo: required
services:
......@@ -376,7 +352,7 @@ jobs:
- stage: Test
php: 7.1
env: DB=pdo_sqlsrv COVERAGE=yes
env: DB=pdo_sqlsrv
sudo: required
services:
- docker
......@@ -385,16 +361,35 @@ jobs:
- bash ./tests/travis/install-mssql.sh
- stage: Test
php: 7.2
env: DB=pdo_sqlsrv
env: DB=pdo_sqlsrv COVERAGE=yes
sudo: required
services:
- docker
before_script:
- bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh
- stage: Test
php: 7.3
env: DB=pdo_sqlsrv
sudo: required
services:
- docker
before_script:
- bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh
- stage: Test
php: nightly
env: DB=pdo_sqlsrv
sudo: required
services:
- docker
before_script:
- bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh
- stage: Test
env: DB=ibm_db2 COVERAGE=yes
php: 7.1
env: DB=ibm_db2
sudo: required
services:
- docker
......@@ -403,7 +398,7 @@ jobs:
- bash ./tests/travis/install-db2-$DB.sh
- stage: Test
php: 7.2
env: DB=ibm_db2
env: DB=ibm_db2 COVERAGE=yes
sudo: required
services:
- docker
......@@ -426,12 +421,13 @@ jobs:
- travis_retry composer update --prefer-dist
- stage: Code Quality
php: 7.2
env: DB=none STATIC_ANALYSIS
install: travis_retry composer install --prefer-dist
script: vendor/bin/phpstan analyse
- stage: Coding standard
php: 7.1
php: 7.2
install: travis_retry composer install --prefer-dist
script:
- ./vendor/bin/phpcs
......@@ -3,4 +3,9 @@
set -ex
echo "Installing extension"
pecl install pdo_sqlsrv
if [ "$TRAVIS_PHP_VERSION" == "7.3" ] || [ "$TRAVIS_PHP_VERSION" == "nightly" ] ; then
pecl install pdo_sqlsrv-5.4.0preview
else
pecl install pdo_sqlsrv
fi
......@@ -3,4 +3,9 @@
set -ex
echo "Installing extension"
pecl install sqlsrv
if [ "$TRAVIS_PHP_VERSION" == "7.3" ] || [ "$TRAVIS_PHP_VERSION" == "nightly" ] ; then
pecl install sqlsrv-5.4.0preview
else
pecl install sqlsrv
fi
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