From: Timo Tijhof Date: Thu, 13 Jun 2019 21:07:20 +0000 (+0100) Subject: build: Remove dbtype=postgres from Travis CI matrix X-Git-Tag: 1.34.0-rc.0~1422 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites_tous%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=f638c599d5;p=lhc%2Fweb%2Fwiklou.git build: Remove dbtype=postgres from Travis CI matrix This has since been added to WMF CI (and voting). What remains is just secondary confirmation that the tests can all pass a third-party system (e.g. not the WMF-specific Linux/Docker environment), for supported PHP versions. Change-Id: Ic257a34630c61d5328afeaa6dc5685581e03a528 --- diff --git a/.travis.yml b/.travis.yml index ada60e465d..ebe1631684 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,17 +24,9 @@ cache: matrix: fast_finish: true include: - # On Trusty, mysql user 'travis' doesn't have create database rights - # Postgres has no user called 'root'. - - env: dbtype=mysql dbuser=root php: 7.3 - - env: dbtype=mysql dbuser=root php: 7.2 - - env: dbtype=mysql dbuser=root php: 7.1 - - env: dbtype=postgres dbuser=travis - php: 7.1 - - env: dbtype=mysql dbuser=root php: 7 allow_failures: - php: 7.3 @@ -60,13 +52,13 @@ addons: before_script: - echo 'opcache.enable_cli = 1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - composer install --prefer-source --quiet --no-interaction - - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi + # At Travis CI, the mysql user 'travis' doesn't have create database rights, use 'root' instead. - > php maintenance/install.php traviswiki admin --pass travis - --dbtype "$dbtype" + --dbtype "mysql" --dbname traviswiki - --dbuser "$dbuser" + --dbuser "root" --dbpass "" --scriptpath "/w" - echo -en "\n\nrequire_once __DIR__ . '/includes/DevelopmentSettings.php';\n" >> ./LocalSettings.php