Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b0dc21e
Update bootstrap.php
DeepDiver1975 Feb 6, 2018
9e6f1e4
Merge pull request #71 from owncloud/DeepDiver1975-patch-2
Feb 6, 2018
5e1e367
Format CSS
lordelix Mar 29, 2018
f758842
Remove -moz-filter (deprecated)
lordelix Mar 29, 2018
2c4de3b
fix missing googleplay banner
lordelix Mar 29, 2018
c1b170e
Merge pull request #77 from owncloud/stable10-fix-missing-banner
Apr 4, 2018
ecda845
Ready for 10.1
Oct 20, 2018
527a9de
Merge pull request #82 from owncloud/semver-switch
DeepDiver1975 Oct 21, 2018
03f5e26
Set max version to 10
PVince81 Nov 13, 2018
0df0a8c
Merge pull request #84 from owncloud/stable10-max-version
Nov 13, 2018
789db92
Standardize CI and move to drone
phil-davis Dec 12, 2018
d762a63
code style changes
phil-davis Dec 12, 2018
d1fd4cb
Remove travis
phil-davis Dec 12, 2018
dc52eee
Adjust build status badge for drone
phil-davis Dec 13, 2018
beb0e89
Add codecoverage in drone
dpakach Dec 19, 2018
e5bde78
Do not pin coding-standard to PHP 5.6
phil-davis Dec 28, 2018
b956cc0
Run drone on stable10
phil-davis Feb 21, 2019
b7501fa
Fix code style in stable10
phil-davis Feb 21, 2019
c87f20f
Merge pull request #91 from owncloud/stable10-standardize-CI
phil-davis Feb 21, 2019
e061144
Add occ command to reset for all users
Nov 9, 2018
fb13bf6
Merge pull request #93 from owncloud/stable10-feature/reset-all
Feb 21, 2019
b359bac
Drop PHP 5.6
phil-davis Mar 13, 2019
c55a2be
Adjust composer files and app core min-version for 'drop PHP 5.6'
phil-davis Mar 13, 2019
4b4cb3c
Updating bamarni/composer-bin-plugin (v1.2.0 => v1.3.0)
phil-davis Apr 3, 2019
5ad74ea
Adjust PHPUnit Framework namespace for PHPUnit6
phil-davis Apr 2, 2019
7f56836
phpunit enable failOnRisky failOnWarning
phil-davis Apr 2, 2019
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
189 changes: 189 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
workspace:
base: /var/www/owncloud
path: apps/firstrunwizard

branches: [master, release*, release/*, stable10]

pipeline:
install-core:
image: owncloudci/core
version: ${OC_VERSION}
pull: true
exclude: "apps/firstrunwizard"
db_type: ${DB_TYPE}
db_name: ${DB_NAME}
db_host: ${DB_TYPE}
db_username: autotest
db_password: owncloud
when:
matrix:
NEED_CORE: true

install-app:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- cd /var/www/owncloud/
- php occ a:l
- php occ a:e firstrunwizard
- php occ a:e testing
- php occ a:l
- php occ config:system:set trusted_domains 1 --value=owncloud
- php occ log:manage --level 0
when:
matrix:
NEED_INSTALL_APP: true

fix-permissions:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- chown www-data /var/www/owncloud -R
- chmod 777 /var/www/owncloud/tests/acceptance/filesForUpload -R
- chmod +x /var/www/owncloud/tests/acceptance/run.sh
when:
matrix:
NEED_SERVER: true

owncloud-log:
image: owncloud/ubuntu:16.04
detach: true
pull: true
commands:
- tail -f /var/www/owncloud/data/owncloud.log
when:
matrix:
NEED_SERVER: true

owncloud-coding-standard:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- make test-php-style
when:
matrix:
TEST_SUITE: owncloud-coding-standard

phpunit-tests:
image: owncloudci/php:${PHP_VERSION}
pull: true
environment:
- COVERAGE=${COVERAGE}
commands:
- if [ -z "${COVERAGE}" ]; then make test-php-unit; fi
- if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi
when:
matrix:
TEST_SUITE: phpunit

codecov:
image: plugins/codecov:2
secrets: [codecov_token]
pull: true
paths:
- tests/output/*.xml
when:
matrix:
COVERAGE: true

notify:
image: plugins/slack:1
pull: true
secrets: [slack_webhook]
channel: builds
when:
status: [failure, changed]
event: [push, tag]

services:
mysql:
image: mysql:5.5
environment:
- MYSQL_USER=autotest
- MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_ROOT_PASSWORD=owncloud
when:
matrix:
DB_TYPE: mysql

pgsql:
image: postgres:9.4
environment:
- POSTGRES_USER=autotest
- POSTGRES_PASSWORD=owncloud
- POSTGRES_DB=${DB_NAME}
when:
matrix:
DB_TYPE: pgsql

oci:
image: deepdiver/docker-oracle-xe-11g
environment:
- ORACLE_USER=system
- ORACLE_PASSWORD=oracle
- ORACLE_DB=${DB_NAME}
when:
matrix:
DB_TYPE: oci

owncloud:
image: owncloudci/php:${PHP_VERSION}
pull: true
environment:
- APACHE_WEBROOT=/var/www/owncloud/
command: [ "/usr/local/bin/apachectl", "-e", "debug", "-D", "FOREGROUND" ]
when:
matrix:
NEED_SERVER: true

matrix:
include:
# owncloud-coding-standard
- PHP_VERSION: 7.2
TEST_SUITE: owncloud-coding-standard

- PHP_VERSION: 7.0
TEST_SUITE: owncloud-coding-standard

# Unit Tests
- PHP_VERSION: 7.1
OC_VERSION: daily-master-qa
TEST_SUITE: phpunit
DB_TYPE: mysql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true

- PHP_VERSION: 7.2
OC_VERSION: daily-master-qa
TEST_SUITE: phpunit
DB_TYPE: mysql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true

- PHP_VERSION: 7.0
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: mysql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true

- PHP_VERSION: 7.1
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: mysql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true
COVERAGE: true

- PHP_VERSION: 7.2
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: mysql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true
18 changes: 16 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# test coverage
tests/clover.xml
# build dir
/build/
/l10n/.transifexrc
.php_cs.cache

# Composer
vendor/
vendor-bin/**/vendor
vendor-bin/**/composer.lock

# Mac OS
.DS_Store

# Tests - auto-generated files
/tests/acceptance/output
/tests/output
109 changes: 109 additions & 0 deletions .phan/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?php
/**
* @author Patrick Jahns <github@patrickjahns.de>
*
* @copyright Copyright (c) 2018, ownCloud GmbH
* @license GPL-2.0
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/

return [

// Supported values: '7.0', '7.1', '7.2', null.
// If this is set to null,
// then Phan assumes the PHP version which is closest to the minor version
// of the php executable used to execute phan.
'target_php_version' => null,

// A list of directories that should be parsed for class and
// method information. After excluding the directories
// defined in exclude_analysis_directory_list, the remaining
// files will be statically analyzed for errors.
//
// Thus, both first-party and third-party code being used by
// your application should be included in this list.
'directory_list' => [
'appinfo',
'lib',
'vendor',
'../../lib',
'../../core'
],

// A directory list that defines files that will be excluded
// from static analysis, but whose class and method
// information should be included.
//
// Generally, you'll want to include the directories for
// third-party code (such as "vendor/") in this list.
//
// n.b.: If you'd like to parse but not analyze 3rd
// party code, directories containing that code
// should be added to both the `directory_list`
// and `exclude_analysis_directory_list` arrays.
'exclude_analysis_directory_list' => [
'vendor',
'../../lib',
'../../core'
],

// A regular expression to match files to be excluded
// from parsing and analysis and will not be read at all.
//
// This is useful for excluding groups of test or example
// directories/files, unanalyzable files, or files that
// can't be removed for whatever reason.
// (e.g. '@Test\.php$@', or '@vendor/.*/(tests|Tests)/@')
'exclude_file_regex' => '@.*/[^/]*(tests|Tests|templates)/@',

// If true, missing properties will be created when
// they are first seen. If false, we'll report an
// error message.
"allow_missing_properties" => false,

// If enabled, allow null to be cast as any array-like type.
// This is an incremental step in migrating away from null_casts_as_any_type.
// If null_casts_as_any_type is true, this has no effect.
"null_casts_as_any_type" => true,

// Backwards Compatibility Checking. This is slow
// and expensive, but you should consider running
// it before upgrading your version of PHP to a
// new version that has backward compatibility
// breaks.
'backward_compatibility_checks' => false,

// The initial scan of the function's code block has no
// type information for `$arg`. It isn't until we see
// the call and rescan test()'s code block that we can
// detect that it is actually returning the passed in
// `string` instead of an `int` as declared.
'quick_mode' => false,

// The minimum severity level to report on. This can be
// set to Issue::SEVERITY_LOW, Issue::SEVERITY_NORMAL or
// Issue::SEVERITY_CRITICAL. Setting it to only
// critical issues is a good place to start on a big
// sloppy mature code base.
'minimum_severity' => 5,

// A set of fully qualified class-names for which
// a call to parent::__construct() is required
'parent_constructor_required' => [
],

];
10 changes: 10 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
$config = new OC\CodingStandard\Config();
$config
->setUsingCache(true)
->getFinder()
->exclude('vendor')
->exclude('vendor-bin')
->exclude('l10n')
->in(__DIR__);
return $config;
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

Loading