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: ...@@ -21,7 +21,7 @@ before_commands:
tools: tools:
external_code_coverage: external_code_coverage:
timeout: 3600 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: filter:
excluded_paths: excluded_paths:
......
...@@ -10,6 +10,7 @@ cache: ...@@ -10,6 +10,7 @@ cache:
php: php:
- 7.1 - 7.1
- 7.2 - 7.2
- 7.3
- nightly - nightly
env: env:
...@@ -62,28 +63,52 @@ jobs: ...@@ -62,28 +63,52 @@ jobs:
env: DB=mysql env: DB=mysql
- php: 7.1 - php: 7.1
env: DB=mysqli 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: include:
- stage: Test - stage: Test
php: 7.1 php: 7.1
env: DB=sqlite
- stage: Test
php: 7.2
env: DB=sqlite COVERAGE=yes env: DB=sqlite COVERAGE=yes
- stage: Test - stage: Test
php: 7.1 php: 7.2
env: DB=mysql COVERAGE=yes env: DB=mysql COVERAGE=yes
- stage: Test - stage: Test
php: 7.1 php: 7.2
env: DB=mysqli COVERAGE=yes env: DB=mysqli COVERAGE=yes
- stage: Test - stage: Test
php: 7.1 php: 7.1
env: DB=mysql MYSQL_VERSION=5.7 COVERAGE=yes env: DB=mysql MYSQL_VERSION=5.7
sudo: required sudo: required
before_script: before_script:
- bash ./tests/travis/install-mysql-5.7.sh - bash ./tests/travis/install-mysql-5.7.sh
- stage: Test - stage: Test
php: 7.2 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 env: DB=mysql MYSQL_VERSION=5.7
sudo: required sudo: required
before_script: before_script:
...@@ -97,12 +122,18 @@ jobs: ...@@ -97,12 +122,18 @@ jobs:
- stage: Test - stage: Test
php: 7.1 php: 7.1
env: DB=mysqli MYSQL_VERSION=5.7 COVERAGE=yes env: DB=mysqli MYSQL_VERSION=5.7
sudo: required sudo: required
before_script: before_script:
- bash ./tests/travis/install-mysql-5.7.sh - bash ./tests/travis/install-mysql-5.7.sh
- stage: Test - stage: Test
php: 7.2 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 env: DB=mysqli MYSQL_VERSION=5.7
sudo: required sudo: required
before_script: before_script:
...@@ -114,250 +145,214 @@ jobs: ...@@ -114,250 +145,214 @@ jobs:
before_script: before_script:
- bash ./tests/travis/install-mysql-5.7.sh - 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 - stage: Test
php: 7.2 php: 7.2
env: DB=mariadb MARIADB_VERSION=10.0 env: DB=mariadb MARIADB_VERSION=10.0 COVERAGE=yes
addons:
mariadb: 10.0
- stage: Test
php: nightly
env: DB=mariadb MARIADB_VERSION=10.0
addons: addons:
mariadb: 10.0 mariadb: 10.0
- stage: Test
php: 7.1
env: DB=mariadb MARIADB_VERSION=10.1 COVERAGE=yes
addons:
mariadb: 10.1
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=mariadb MARIADB_VERSION=10.1 env: DB=mariadb MARIADB_VERSION=10.1 COVERAGE=yes
addons:
mariadb: 10.1
- stage: Test
php: nightly
env: DB=mariadb MARIADB_VERSION=10.1
addons: addons:
mariadb: 10.1 mariadb: 10.1
- stage: Test - stage: Test
php: 7.1 php: 7.2
env: DB=mariadb MARIADB_VERSION=10.2 COVERAGE=yes env: DB=mariadb MARIADB_VERSION=10.2 COVERAGE=yes
addons: addons:
mariadb: 10.2 mariadb: 10.2
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=mariadb MARIADB_VERSION=10.2 env: DB=mariadb.mysqli MARIADB_VERSION=10.0 COVERAGE=yes
addons: addons:
mariadb: 10.2 mariadb: 10.0
- stage: Test - stage: Test
php: nightly php: 7.2
env: DB=mariadb MARIADB_VERSION=10.2 env: DB=mariadb.mysqli MARIADB_VERSION=10.1 COVERAGE=yes
addons: addons:
mariadb: 10.2 mariadb: 10.1
- stage: Test - stage: Test
php: 7.1 php: 7.2
env: DB=mariadb.mysqli MARIADB_VERSION=10.2 COVERAGE=yes env: DB=mariadb.mysqli MARIADB_VERSION=10.2 COVERAGE=yes
addons: addons:
mariadb: 10.2 mariadb: 10.2
- stage: Test - stage: Test
php: 7.2 php: 7.1
env: DB=mariadb.mysqli MARIADB_VERSION=10.2 env: DB=mariadb MARIADB_VERSION=10.3
addons: addons:
mariadb: 10.2 mariadb: 10.3
- stage: Test - stage: Test
php: nightly php: 7.2
env: DB=mariadb.mysqli MARIADB_VERSION=10.2 env: DB=mariadb MARIADB_VERSION=10.3 COVERAGE=yes
addons: addons:
mariadb: 10.2 mariadb: 10.3
- stage: Test - stage: Test
php: 7.2 php: 7.3
env: DB=mariadb MARIADB_VERSION=10.3 env: DB=mariadb MARIADB_VERSION=10.3
addons: addons:
mariadb: 10.3 mariadb: 10.3
- stage: Test - stage: Test
php: 7.2 php: nightly
env: DB=mariadb.mysqli MARIADB_VERSION=10.3 env: DB=mariadb MARIADB_VERSION=10.3
addons: addons:
mariadb: 10.3 mariadb: 10.3
- stage: Test - stage: Test
php: 7.1 php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=9.2 COVERAGE=yes env: DB=mariadb.mysqli MARIADB_VERSION=10.3
services:
- postgresql
addons: addons:
postgresql: "9.2" mariadb: 10.3
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.2 env: DB=mariadb.mysqli MARIADB_VERSION=10.3 COVERAGE=yes
services:
- postgresql
addons: addons:
postgresql: "9.2" mariadb: 10.3
- stage: Test - stage: Test
php: nightly php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=9.2 env: DB=mariadb.mysqli MARIADB_VERSION=10.3
services:
- postgresql
addons: addons:
postgresql: "9.2" mariadb: 10.3
- stage: Test - stage: Test
php: 7.1 php: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.3 COVERAGE=yes env: DB=mariadb.mysqli MARIADB_VERSION=10.3
services:
- postgresql
addons: addons:
postgresql: "9.3" mariadb: 10.3
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.3 env: DB=pgsql POSTGRESQL_VERSION=9.2 COVERAGE=yes
services: services:
- postgresql - postgresql
addons: addons:
postgresql: "9.3" postgresql: "9.2"
- stage: Test - stage: Test
php: nightly php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.3 env: DB=pgsql POSTGRESQL_VERSION=9.3 COVERAGE=yes
services: services:
- postgresql - postgresql
addons: addons:
postgresql: "9.3" 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 - stage: Test
php: 7.2 php: 7.2
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: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.4
services: services:
- postgresql - postgresql
addons: addons:
postgresql: "9.4" 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 - stage: Test
php: 7.2 php: 7.2
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: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.5
services: services:
- postgresql - postgresql
addons: addons:
postgresql: "9.5" postgresql: "9.5"
- stage: Test - stage: Test
php: 7.1 php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.6 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=9.6 COVERAGE=yes
services: services:
- postgresql - postgresql
addons: addons:
postgresql: "9.6" postgresql: "9.6"
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=9.6 env: DB=pgsql POSTGRESQL_VERSION=10.0 COVERAGE=yes
services: sudo: required
- postgresql
addons:
postgresql: "9.6"
- stage: Test
php: nightly
env: DB=pgsql POSTGRESQL_VERSION=9.6
services: services:
- postgresql - postgresql
addons: addons:
postgresql: "9.6" postgresql: "9.6"
before_script:
- bash ./tests/travis/install-postgres-10.sh
- stage: Test - stage: Test
php: 7.1 php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=10.0 COVERAGE=yes env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required sudo: required
services: services:
- postgresql - docker
addons:
postgresql: "9.6"
before_script: before_script:
- bash ./tests/travis/install-postgres-10.sh - bash ./tests/travis/install-postgres-11.sh
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=10.0 env: DB=pgsql POSTGRESQL_VERSION=11.0 COVERAGE=yes
sudo: required sudo: required
services: services:
- postgresql - docker
addons:
postgresql: "9.6"
before_script: before_script:
- bash ./tests/travis/install-postgres-10.sh - bash ./tests/travis/install-postgres-11.sh
- stage: Test
php: 7.3
env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required
services:
- docker
before_script:
- bash ./tests/travis/install-postgres-11.sh
- stage: Test - stage: Test
php: nightly php: nightly
env: DB=pgsql POSTGRESQL_VERSION=10.0 env: DB=pgsql POSTGRESQL_VERSION=11.0
sudo: required sudo: required
services: services:
- postgresql - docker
addons:
postgresql: "9.6"
before_script: before_script:
- bash ./tests/travis/install-postgres-10.sh - bash ./tests/travis/install-postgres-11.sh
- stage: Test - stage: Test
php: 7.1 php: 7.1
env: DB=pgsql POSTGRESQL_VERSION=11.0 env: DB=sqlsrv
sudo: required sudo: required
services: services:
- docker - docker
before_script: before_script:
- bash ./tests/travis/install-postgres-11.sh - bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=pgsql POSTGRESQL_VERSION=11.0 env: DB=sqlsrv COVERAGE=yes
sudo: required sudo: required
services: services:
- docker - docker
before_script: 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.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 - stage: Test
php: nightly php: nightly
env: DB=pgsql POSTGRESQL_VERSION=11.0 env: DB=sqlsrv
sudo: required sudo: required
services: services:
- docker - docker
before_script: before_script:
- bash ./tests/travis/install-postgres-11.sh - bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
env: DB=sqlsrv COVERAGE=yes php: 7.1
env: DB=pdo_sqlsrv
sudo: required sudo: required
services: services:
- docker - docker
...@@ -366,17 +361,16 @@ jobs: ...@@ -366,17 +361,16 @@ jobs:
- bash ./tests/travis/install-mssql.sh - bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=sqlsrv env: DB=pdo_sqlsrv COVERAGE=yes
sudo: required sudo: required
services: services:
- docker - docker
before_script: before_script:
- bash ./tests/travis/install-mssql-$DB.sh - bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh - bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
php: 7.1 php: 7.3
env: DB=pdo_sqlsrv COVERAGE=yes env: DB=pdo_sqlsrv
sudo: required sudo: required
services: services:
- docker - docker
...@@ -384,7 +378,7 @@ jobs: ...@@ -384,7 +378,7 @@ jobs:
- bash ./tests/travis/install-mssql-$DB.sh - bash ./tests/travis/install-mssql-$DB.sh
- bash ./tests/travis/install-mssql.sh - bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
php: 7.2 php: nightly
env: DB=pdo_sqlsrv env: DB=pdo_sqlsrv
sudo: required sudo: required
services: services:
...@@ -394,7 +388,8 @@ jobs: ...@@ -394,7 +388,8 @@ jobs:
- bash ./tests/travis/install-mssql.sh - bash ./tests/travis/install-mssql.sh
- stage: Test - stage: Test
env: DB=ibm_db2 COVERAGE=yes php: 7.1
env: DB=ibm_db2
sudo: required sudo: required
services: services:
- docker - docker
...@@ -403,7 +398,7 @@ jobs: ...@@ -403,7 +398,7 @@ jobs:
- bash ./tests/travis/install-db2-$DB.sh - bash ./tests/travis/install-db2-$DB.sh
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=ibm_db2 env: DB=ibm_db2 COVERAGE=yes
sudo: required sudo: required
services: services:
- docker - docker
...@@ -426,12 +421,13 @@ jobs: ...@@ -426,12 +421,13 @@ jobs:
- travis_retry composer update --prefer-dist - travis_retry composer update --prefer-dist
- stage: Code Quality - stage: Code Quality
php: 7.2
env: DB=none STATIC_ANALYSIS env: DB=none STATIC_ANALYSIS
install: travis_retry composer install --prefer-dist install: travis_retry composer install --prefer-dist
script: vendor/bin/phpstan analyse script: vendor/bin/phpstan analyse
- stage: Coding standard - stage: Coding standard
php: 7.1 php: 7.2
install: travis_retry composer install --prefer-dist install: travis_retry composer install --prefer-dist
script: script:
- ./vendor/bin/phpcs - ./vendor/bin/phpcs
...@@ -3,4 +3,9 @@ ...@@ -3,4 +3,9 @@
set -ex set -ex
echo "Installing extension" 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 @@ ...@@ -3,4 +3,9 @@
set -ex set -ex
echo "Installing extension" 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