Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable10] future drop php 7.0 #34936

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 62 additions & 60 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,6 @@ pipeline:
matrix:
TEST_SUITE: owncloud-coding-standard

php-phan-70:
image: owncloudci/php:7.0
pull: true
commands:
- make test-php-phan
when:
matrix:
TEST_SUITE: phan-70

php-phan-71:
image: owncloudci/php:7.1
pull: true
Expand Down Expand Up @@ -214,6 +205,15 @@ pipeline:
matrix:
PRIMARY_OBJECTSTORE: files_primary_s3

phpstan:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- make test-php-phpstan
when:
matrix:
TEST_SUITE: phpstan

phpunit:
image: owncloudci/php:${PHP_VERSION}
pull: true
Expand Down Expand Up @@ -479,7 +479,7 @@ pipeline:
services:

mariadb:
image: mariadb:10.2
image: ${MARIADB_IMAGE=mariadb:10.2}
environment:
- MYSQL_USER=owncloud
- MYSQL_PASSWORD=owncloud
Expand All @@ -490,7 +490,7 @@ services:
DB_TYPE: mariadb

mysql:
image: mysql:5.5
image: ${MYSQL_IMAGE=mysql:5.5}
environment:
- MYSQL_USER=owncloud
- MYSQL_PASSWORD=owncloud
Expand All @@ -500,19 +500,21 @@ services:
matrix:
DB_TYPE: mysql

mysqlmb4:
image: mysql:5.7
mysql8:
image: ${MYSQL_IMAGE=mysql:8.0}
# see http://php.net/manual/en/mysqli.requirements.php
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_USER=owncloud
- MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=owncloud
- MYSQL_ROOT_PASSWORD=owncloud
when:
matrix:
DB_TYPE: mysqlmb4
DB_TYPE: mysql8

postgres:
image: postgres:9.4
image: ${POSTGRES_IMAGE=postgres:9.4}
environment:
- POSTGRES_USER=owncloud
- POSTGRES_PASSWORD=owncloud
Expand Down Expand Up @@ -663,14 +665,16 @@ matrix:
- PHP_VERSION: 7.3
TEST_SUITE: owncloud-coding-standard

# phan (runs on just PHP 7.0 because that has different dependencies for phan)
- TEST_SUITE: phan-70
PHP_VERSION: 7.0

# phan (runs multiple PHP v7.1+ to provide syntax checks of each PHP version)
# phan (runs multiple PHP v7.* to provide syntax checks of each PHP version)
- TEST_SUITE: phan
PHP_VERSION: 7.1

# phpstan
# disable in stable10 until code fixes can be backported
# - TEST_SUITE: phpstan
# PHP_VERSION: 7.1
# INSTALL_SERVER: true

# Litmus
- PHP_VERSION: 7.1
USE_SERVER: true
Expand All @@ -688,65 +692,86 @@ matrix:
INSTALL_TESTING_APP: true

- PHP_VERSION: 7.1
DB_TYPE: mysqlmb4
DB_TYPE: mysql
# mb4 support, with innodb_file_format=Barracuda
MYSQL_IMAGE: mysql:5.7
TEST_SUITE: phpunit
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

- PHP_VERSION: 7.1
DB_TYPE: postgres
# mb4 support by default
DB_TYPE: mysql8
TEST_SUITE: phpunit
COVERAGE: true
COVERAGE: false
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

# - PHP_VERSION: 7.1
# DB_TYPE: mariadb
# TEST_SUITE: phpunit
# INSTALL_SERVER: true

- PHP_VERSION: 7.1
DB_TYPE: oracle
DB_TYPE: postgres
POSTGRES_IMAGE: postgres:9.4
TEST_SUITE: phpunit
COVERAGE: true
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

# - PHP_VERSION: 7.1
# DB_TYPE: postgres
# POSTGRES_IMAGE: postgres:10.3
# TEST_SUITE: phpunit
# COVERAGE: true
# INSTALL_SERVER: true
# INSTALL_TESTING_APP: true

- PHP_VERSION: 7.1
DB_TYPE: sqlite
DB_TYPE: mariadb
# mb4 support by default
MARIADB_IMAGE: mariadb:10.3
TEST_SUITE: phpunit
COVERAGE: true
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

# PHP 7.0
- PHP_VERSION: 7.0
DB_TYPE: mysql
- PHP_VERSION: 7.1
DB_TYPE: oracle
TEST_SUITE: phpunit
COVERAGE: true
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

- PHP_VERSION: 7.0
DB_TYPE: mysqlmb4
- PHP_VERSION: 7.1
DB_TYPE: sqlite
TEST_SUITE: phpunit
COVERAGE: true
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

- PHP_VERSION: 7.0
DB_TYPE: postgres
# PHP 7.2
- PHP_VERSION: 7.2
DB_TYPE: sqlite
TEST_SUITE: phpunit
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

- PHP_VERSION: 7.0
DB_TYPE: oracle
- PHP_VERSION: 7.2
DB_TYPE: mariadb
TEST_SUITE: phpunit
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

# PHP 7.2
- PHP_VERSION: 7.2
# PHP 7.3
- PHP_VERSION: 7.3
DB_TYPE: sqlite
TEST_SUITE: phpunit
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

- PHP_VERSION: 7.2
- PHP_VERSION: 7.3
DB_TYPE: mariadb
TEST_SUITE: phpunit
INSTALL_SERVER: true
Expand Down Expand Up @@ -799,15 +824,6 @@ matrix:
INSTALL_TESTING_APP: true

# Primary Objectstorage
- PHP_VERSION: 7.0
TEST_SUITE: phpunit
DB_TYPE: sqlite
OBJECTSTORE: swift
PRIMARY_OBJECTSTORE: swift
FILES_EXTERNAL_TYPE: swift
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

- PHP_VERSION: 7.1
TEST_SUITE: phpunit
COVERAGE: true
Expand Down Expand Up @@ -1632,20 +1648,6 @@ matrix:
OWNCLOUD_LOG: true
CALDAV_CARDDAV_JOB: true

# This suite is part of the encryption app in later core versions
- PHP_VERSION: 7.0
TEST_SUITE: cli
BEHAT_SUITE: cliEncryption
DB_TYPE: mariadb
USE_SERVER: true
SERVER_PROTOCOL: https
INSTALL_SERVER: true
CHOWN_SERVER: true
OWNCLOUD_LOG: true
CONFIGURE_ENCRYPTION: true
ENCRYPTION_TYPE: masterkey
INSTALL_TESTING_APP: true

# This suite is part of the encryption app in later core versions
- PHP_VERSION: 7.1
TEST_SUITE: cli
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ExceptionPlugin extends \OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin {
*/
protected $exceptions = [];

public function logException(\Exception $ex) {
public function logException(\Throwable $ex) {
$exceptionClass = \get_class($ex);
if (!isset($this->nonFatalExceptions[$exceptionClass])) {
$this->exceptions[] = $ex;
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"optimize-autoloader": true,
"classmap-authoritative": false,
"platform": {
"php": "7.0.8"
"php": "7.1"
}
},
"autoload" : {
Expand All @@ -30,7 +30,7 @@
"roave/security-advisories": "dev-master"
},
"require": {
"php": ">=7.0.8",
"php": ">=7.1",
"doctrine/dbal": "^2.5",
"phpseclib/phpseclib": "^2.0",
"rackspace/php-opencloud": "v1.9.2",
Expand Down
Loading