From 56845ae918ea5e771e4b9fffee10a93c4aa16d87 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Thu, 29 Nov 2018 16:26:57 +0100 Subject: [PATCH] Reorganize Travix build matrix --- .travis.yml | 320 +++++++++++++++++++++------------------------------- 1 file changed, 131 insertions(+), 189 deletions(-) diff --git a/.travis.yml b/.travis.yml index de5c5dcd9b8..c2063510786 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,17 +7,6 @@ cache: - vendor - $HOME/.composer/cache -php: - - 7.1 - - 7.2 - - 7.3 - - nightly - -env: - - DB=sqlite - - DB=mysql - - DB=mysqli - before_install: - | if [ "x$COVERAGE" != "xyes" ]; then @@ -54,47 +43,8 @@ after_script: jobs: allow_failures: - php: nightly - - env: DB=pgsql POSTGRESQL_VERSION=11.0 - - exclude: - - php: 7.1 - env: DB=sqlite - - php: 7.1 - 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.2 - env: DB=mysql COVERAGE=yes - - - stage: Test - php: 7.2 - env: DB=mysqli COVERAGE=yes - - stage: Test php: 7.1 env: DB=mysql MYSQL_VERSION=5.7 @@ -102,133 +52,122 @@ jobs: before_script: - bash ./tests/travis/install-mysql-5.7.sh - stage: Test - php: 7.2 - env: DB=mysql MYSQL_VERSION=5.7 COVERAGE=yes + php: 7.1 + env: DB=mysqli MYSQL_VERSION=5.7 sudo: required before_script: - bash ./tests/travis/install-mysql-5.7.sh - stage: Test - php: 7.3 - env: DB=mysql MYSQL_VERSION=5.7 + php: 7.1 + env: DB=mariadb MARIADB_VERSION=10.3 + addons: + mariadb: 10.3 + - stage: Test + php: 7.1 + env: DB=mariadb.mysqli MARIADB_VERSION=10.3 + addons: + mariadb: 10.3 + - stage: Test + php: 7.1 + env: DB=pgsql POSTGRESQL_VERSION=11.0 sudo: required + services: + - docker before_script: - - bash ./tests/travis/install-mysql-5.7.sh + - bash ./tests/travis/install-postgres-11.sh - stage: Test - php: nightly - env: DB=mysql MYSQL_VERSION=5.7 + php: 7.1 + env: DB=sqlite + - stage: Test + php: 7.1 + env: DB=sqlsrv sudo: required + services: + - docker before_script: - - bash ./tests/travis/install-mysql-5.7.sh - + - bash ./tests/travis/install-mssql-sqlsrv.sh + - bash ./tests/travis/install-mssql.sh - stage: Test php: 7.1 - env: DB=mysqli MYSQL_VERSION=5.7 + env: DB=pdo_sqlsrv sudo: required + services: + - docker before_script: - - bash ./tests/travis/install-mysql-5.7.sh + - bash ./tests/travis/install-mssql-pdo_sqlsrv.sh + - bash ./tests/travis/install-mssql.sh - stage: Test - php: 7.2 - env: DB=mysqli MYSQL_VERSION=5.7 COVERAGE=yes + php: 7.1 + env: DB=ibm_db2 sudo: required + services: + - docker before_script: - - bash ./tests/travis/install-mysql-5.7.sh + - bash ./tests/travis/install-db2.sh + - bash ./tests/travis/install-db2-ibm_db2.sh - stage: Test - php: 7.3 - env: DB=mysqli MYSQL_VERSION=5.7 + php: 7.1 + env: DB=sqlite DEPENDENCIES=low + install: + - travis_retry composer update --prefer-dist --prefer-lowest + - stage: Test + php: 7.2 + env: DB=mysql COVERAGE=yes + - 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: nightly - env: DB=mysqli MYSQL_VERSION=5.7 + php: 7.2 + env: DB=mysqli COVERAGE=yes + - 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.2 env: DB=mariadb MARIADB_VERSION=10.0 COVERAGE=yes addons: mariadb: 10.0 - - stage: Test php: 7.2 env: DB=mariadb MARIADB_VERSION=10.1 COVERAGE=yes addons: mariadb: 10.1 - - stage: Test 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.3 COVERAGE=yes + addons: + mariadb: 10.3 - stage: Test php: 7.2 env: DB=mariadb.mysqli MARIADB_VERSION=10.0 COVERAGE=yes addons: - mariadb: 10.0 - + mariadb: 10.0 - stage: Test php: 7.2 env: DB=mariadb.mysqli MARIADB_VERSION=10.1 COVERAGE=yes addons: - mariadb: 10.1 - + mariadb: 10.1 - stage: Test php: 7.2 env: DB=mariadb.mysqli MARIADB_VERSION=10.2 COVERAGE=yes addons: mariadb: 10.2 - - - stage: Test - php: 7.1 - env: DB=mariadb MARIADB_VERSION=10.3 - addons: - mariadb: 10.3 - - - stage: Test - php: 7.2 - env: DB=mariadb MARIADB_VERSION=10.3 COVERAGE=yes - addons: - mariadb: 10.3 - - - stage: Test - php: 7.3 - env: DB=mariadb MARIADB_VERSION=10.3 - addons: - mariadb: 10.3 - - - stage: Test - php: nightly - env: DB=mariadb MARIADB_VERSION=10.3 - addons: - mariadb: 10.3 - - - stage: Test - php: 7.1 - env: DB=mariadb.mysqli MARIADB_VERSION=10.3 - addons: - mariadb: 10.3 - - stage: Test php: 7.2 env: DB=mariadb.mysqli MARIADB_VERSION=10.3 COVERAGE=yes addons: - mariadb: 10.3 - - - stage: Test - php: 7.3 - env: DB=mariadb.mysqli MARIADB_VERSION=10.3 - addons: - mariadb: 10.3 - - - stage: Test - php: nightly - env: DB=mariadb.mysqli MARIADB_VERSION=10.3 - addons: - mariadb: 10.3 - + mariadb: 10.3 - stage: Test php: 7.2 env: DB=pgsql POSTGRESQL_VERSION=9.2 COVERAGE=yes @@ -236,7 +175,6 @@ jobs: - postgresql addons: postgresql: "9.2" - - stage: Test php: 7.2 env: DB=pgsql POSTGRESQL_VERSION=9.3 COVERAGE=yes @@ -244,7 +182,6 @@ jobs: - postgresql addons: postgresql: "9.3" - - stage: Test php: 7.2 env: DB=pgsql POSTGRESQL_VERSION=9.4 COVERAGE=yes @@ -252,7 +189,6 @@ jobs: - postgresql addons: postgresql: "9.4" - - stage: Test php: 7.2 env: DB=pgsql POSTGRESQL_VERSION=9.5 COVERAGE=yes @@ -260,7 +196,6 @@ jobs: - postgresql addons: postgresql: "9.5" - - stage: Test php: 7.2 env: DB=pgsql POSTGRESQL_VERSION=9.6 COVERAGE=yes @@ -268,7 +203,6 @@ jobs: - postgresql addons: postgresql: "9.6" - - stage: Test php: 7.2 env: DB=pgsql POSTGRESQL_VERSION=10.0 COVERAGE=yes @@ -279,10 +213,9 @@ jobs: postgresql: "9.6" before_script: - bash ./tests/travis/install-postgres-10.sh - - stage: Test - php: 7.1 - env: DB=pgsql POSTGRESQL_VERSION=11.0 + php: 7.2 + env: DB=pgsql POSTGRESQL_VERSION=11.0 COVERAGE=yes sudo: required services: - docker @@ -290,127 +223,136 @@ jobs: - bash ./tests/travis/install-postgres-11.sh - stage: Test php: 7.2 - env: DB=pgsql POSTGRESQL_VERSION=11.0 COVERAGE=yes + env: DB=sqlite COVERAGE=yes + - stage: Test + php: 7.2 + env: DB=sqlsrv COVERAGE=yes sudo: required services: - docker before_script: - - bash ./tests/travis/install-postgres-11.sh + - bash ./tests/travis/install-mssql-sqlsrv.sh + - bash ./tests/travis/install-mssql.sh - stage: Test - php: 7.3 - env: DB=pgsql POSTGRESQL_VERSION=11.0 + php: 7.2 + env: DB=pdo_sqlsrv COVERAGE=yes sudo: required services: - docker before_script: - - bash ./tests/travis/install-postgres-11.sh + - bash ./tests/travis/install-mssql-pdo_sqlsrv.sh + - bash ./tests/travis/install-mssql.sh - stage: Test - php: nightly - env: DB=pgsql POSTGRESQL_VERSION=11.0 + php: 7.2 + env: DB=ibm_db2 COVERAGE=yes sudo: required services: - docker before_script: - - bash ./tests/travis/install-postgres-11.sh - + - bash ./tests/travis/install-db2.sh + - bash ./tests/travis/install-db2-ibm_db2.sh - stage: Test - php: 7.1 - env: DB=sqlsrv + php: 7.3 + env: DB=mysql MYSQL_VERSION=5.7 sudo: required - services: - - docker before_script: - - bash ./tests/travis/install-mssql-$DB.sh - - bash ./tests/travis/install-mssql.sh + - bash ./tests/travis/install-mysql-5.7.sh - stage: Test - php: 7.2 - env: DB=sqlsrv COVERAGE=yes + php: 7.3 + env: DB=mysqli MYSQL_VERSION=5.7 sudo: required - services: - - docker before_script: - - bash ./tests/travis/install-mssql-$DB.sh - - bash ./tests/travis/install-mssql.sh + - bash ./tests/travis/install-mysql-5.7.sh - stage: Test php: 7.3 - env: DB=sqlsrv + env: DB=mariadb MARIADB_VERSION=10.3 + addons: + mariadb: 10.3 + - stage: Test + php: 7.3 + env: DB=mariadb.mysqli MARIADB_VERSION=10.3 + addons: + mariadb: 10.3 + - stage: Test + php: 7.3 + env: DB=pgsql POSTGRESQL_VERSION=11.0 sudo: required services: - docker before_script: - - bash ./tests/travis/install-mssql-$DB.sh - - bash ./tests/travis/install-mssql.sh + - bash ./tests/travis/install-postgres-11.sh - stage: Test - php: nightly + php: 7.3 + env: DB=sqlite + - 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-sqlsrv.sh - bash ./tests/travis/install-mssql.sh - - stage: Test - php: 7.1 + 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-pdo_sqlsrv.sh - bash ./tests/travis/install-mssql.sh - stage: Test - php: 7.2 - env: DB=pdo_sqlsrv COVERAGE=yes + php: nightly + env: DB=mysql MYSQL_VERSION=5.7 sudo: required - services: - - docker before_script: - - bash ./tests/travis/install-mssql-$DB.sh - - bash ./tests/travis/install-mssql.sh + - bash ./tests/travis/install-mysql-5.7.sh - stage: Test - php: 7.3 - env: DB=pdo_sqlsrv + php: nightly + env: DB=mysqli MYSQL_VERSION=5.7 sudo: required - services: - - docker before_script: - - bash ./tests/travis/install-mssql-$DB.sh - - bash ./tests/travis/install-mssql.sh + - bash ./tests/travis/install-mysql-5.7.sh - stage: Test php: nightly - env: DB=pdo_sqlsrv + env: DB=mariadb MARIADB_VERSION=10.3 + addons: + mariadb: 10.3 + - stage: Test + php: nightly + env: DB=mariadb.mysqli MARIADB_VERSION=10.3 + addons: + mariadb: 10.3 + - stage: Test + php: nightly + env: DB=pgsql POSTGRESQL_VERSION=11.0 sudo: required services: - - docker + - docker before_script: - - bash ./tests/travis/install-mssql-$DB.sh - - bash ./tests/travis/install-mssql.sh - + - bash ./tests/travis/install-postgres-11.sh - stage: Test - php: 7.1 - env: DB=ibm_db2 + php: nightly + env: DB=sqlite + - stage: Test + php: nightly + env: DB=sqlsrv sudo: required services: - docker before_script: - - bash ./tests/travis/install-db2.sh - - bash ./tests/travis/install-db2-$DB.sh + - bash ./tests/travis/install-mssql-sqlsrv.sh + - bash ./tests/travis/install-mssql.sh - stage: Test - php: 7.2 - env: DB=ibm_db2 COVERAGE=yes + php: nightly + env: DB=pdo_sqlsrv sudo: required services: - docker before_script: - - bash ./tests/travis/install-db2.sh - - bash ./tests/travis/install-db2-$DB.sh - - - stage: Test - php: 7.1 - env: DB=sqlite DEPENDENCIES=low - install: - - travis_retry composer update --prefer-dist --prefer-lowest + - bash ./tests/travis/install-mssql-pdo_sqlsrv.sh + - bash ./tests/travis/install-mssql.sh - stage: Test if: type = cron