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

[hotfix-10.0.7] Add CI and hotfix for app passwords #30363

Merged
merged 3 commits into from
Feb 7, 2018
Merged
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
141 changes: 138 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ workspace:
base: /drone
path: src

branches: [master, stable10, stable9.1, stable9]
branches: [master, stable10, stable9.1, stable9, hotfix-*]

clone:
git:
Expand Down Expand Up @@ -81,7 +81,7 @@ pipeline:
TEST_SUITE: coverage

codecov:
image: plugins/codecov:1
image: plugins/codecov:2
secrets: [codecov_token]
pull: true
files:
Expand Down Expand Up @@ -114,6 +114,54 @@ pipeline:
matrix:
TEST_SUITE: phpunit

install-server:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- cd /drone/src/
- php occ maintenance:install -vvv --database=mysql --database-host=${DB_TYPE} --database-user=owncloud --database-pass=owncloud --database-name=owncloud --database-table-prefix=oc_ --admin-user=admin --admin-pass=admin --data-dir=/drone/src/data
- php occ a:l
- php occ a:e testing
- php occ a:l
- php occ config:system:set trusted_domains 1 --value=server
- php occ config:system:set trusted_domains 2 --value=federated
- php occ log:manage --level 0
- php occ config:list
when:
matrix:
TEST_SUITE: selenium

owncloud-log:
image: owncloud/ubuntu:16.04
detach: true
pull: true
commands:
- tail -f /drone/src/data/owncloud.log
when:
matrix:
TEST_SUITE: selenium

acceptance-tests:
image: owncloudci/php:latest
pull: true
environment:
- BROWSER=chrome
- SELENIUM_HOST=selenium
- SRV_HOST_NAME=server
- SRV_HOST_PORT=80
- REMOTE_FED_SRV_HOST_NAME=federated
- REMOTE_FED_SRV_HOST_PORT=80
- SKELETON_DIR=/drone/src/tests/ui/skeleton
- SELENIUM_PORT=4444
- PLATFORM=Linux
commands:
- cd /drone/src/
- chown www-data * -R
- bash tests/travis/start_ui_tests.sh --remote
when:
matrix:
TEST_SUITE: selenium

services:
mariadb:
image: mariadb:10.2
Expand Down Expand Up @@ -168,6 +216,32 @@ services:
# matrix:
# DB_TYPE: oracle

selenium:
image: selenium/standalone-chrome-debug:latest
pull: true
when:
matrix:
TEST_SUITE: selenium

server:
image: owncloudci/php:latest
pull: true
environment:
- APACHE_WEBROOT=/drone/src/
command: [ "/usr/local/bin/apachectl", "-e debug" , "-DFOREGROUND" ]
when:
matrix:
USE_SERVER: true

federated:
image: owncloudci/php:latest
pull: true
environment:
- APACHE_WEBROOT=/drone/src/
command: [ "/usr/local/bin/apachectl", "-e debug" , "-DFOREGROUND" ]
when:
matrix:
USE_FEDERATED_SERVER: true
matrix:
include:
# PHP 5.6
Expand Down Expand Up @@ -252,5 +326,66 @@ matrix:
TEST_SUITE: coverage

- PHP_VERSION: 7.1
DB_TYPE: mariadb
DB_TYPE: mysql
TEST_SUITE: coverage

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: other
DB_TYPE: mariadb
USE_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: files
DB_TYPE: mariadb
USE_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: moveFilesFolders
DB_TYPE: mariadb
USE_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: renameFiles
DB_TYPE: mariadb
USE_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: renameFolders
DB_TYPE: mariadb
USE_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: trashbin
DB_TYPE: mariadb
USE_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: sharingInternalGroupsUsers
DB_TYPE: mariadb
USE_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: sharingExternalOther
DB_TYPE: mariadb
USE_SERVER: true
USE_FEDERATED_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: restrictSharing
DB_TYPE: mariadb
USE_SERVER: true

- PHP_VERSION: 7.1
TEST_SUITE: selenium
BEHAT_SUITE: upload
DB_TYPE: mariadb
USE_SERVER: true
21 changes: 11 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ branches:
only:
- master
- /^stable\d+(\.\d+)?$/
- /^hotfix-.*$/

addons:
apt: &common_apt
Expand Down Expand Up @@ -57,70 +58,70 @@ script:
matrix:
include:
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="other" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="files" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="moveFilesFolders" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="renameFiles" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="renameFolders" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="trashbin" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="sharingInternalGroupsUsers" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="sharingExternalOther" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="restrictSharing" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
hosts: *common_hosts
sauce_connect: true
- php: 5.6
if: branch = stable10 OR type = cron
if: branch = stable10 OR branch =~ ^hotfix-.*$ OR type = cron
env: DB=pgsql TC=selenium BROWSER="chrome" BROWSER_VERSION="latest" BEHAT_SUITE="upload" PLATFORM="Windows 10" TEST_DAV=0
addons:
apt: *common_apt
Expand Down
2 changes: 1 addition & 1 deletion lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,8 @@ public function verifyAuthHeaders($request) {
*/
private function getAuthModules($includeBuiltIn) {
if ($includeBuiltIn) {
yield new BasicAuthModule($this->manager);
yield new TokenAuthModule($this->session, $this->tokenProvider, $this->manager);
yield new BasicAuthModule($this->manager);
}

$modules = $this->serviceLoader->load(['auth-modules']);
Expand Down