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] add phpstan drop php 7.0 #35788

Closed
wants to merge 11 commits into from
108 changes: 41 additions & 67 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 @@ -488,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 @@ -499,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 @@ -509,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 @@ -672,11 +665,7 @@ 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

Expand All @@ -702,58 +691,66 @@ 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: oracle
TEST_SUITE: phpunit
COVERAGE: true
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: sqlite
DB_TYPE: postgres
POSTGRES_IMAGE: postgres:9.4
TEST_SUITE: phpunit
COVERAGE: true
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

# PHP 7.0
- PHP_VERSION: 7.0
DB_TYPE: mysql
TEST_SUITE: phpunit
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.0
DB_TYPE: mysqlmb4
- PHP_VERSION: 7.1
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_VERSION: 7.0
DB_TYPE: postgres
- 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: oracle
- PHP_VERSION: 7.1
DB_TYPE: sqlite
TEST_SUITE: phpunit
COVERAGE: true
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

# PHP 7.2
# PHP 7.2
- PHP_VERSION: 7.2
DB_TYPE: sqlite
TEST_SUITE: phpunit
Expand All @@ -766,7 +763,7 @@ matrix:
INSTALL_SERVER: true
INSTALL_TESTING_APP: true

# PHP 7.3
# PHP 7.3
- PHP_VERSION: 7.3
DB_TYPE: sqlite
TEST_SUITE: phpunit
Expand Down Expand Up @@ -813,15 +810,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 @@ -1646,20 +1634,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
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