Skip to content

Commit

Permalink
disable external samba and windows phpunit tests - issue 36322
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Oct 24, 2019
1 parent e6a5c9f commit 40955f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 263 deletions.
6 changes: 4 additions & 2 deletions .drone.starlark
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ config = {
],
'externalTypes': [
'webdav',
'samba',
# disable - see https://github.com/owncloud/core/issues/36322
# 'samba',
'sftp',
'windows',
# disable - see https://github.com/owncloud/core/issues/36322
# 'windows',
'scality'
],
'coverage': True
Expand Down
261 changes: 0 additions & 261 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2891,141 +2891,6 @@ depends_on:
- phan-php7.2
- phan-php7.3

---
kind: pipeline
type: docker
name: phpunit-php7.1-sqlite-samba

platform:
os: linux
arch: amd64

workspace:
base: /drone
path: src

steps:
- name: cache-restore
pull: always
image: plugins/s3-cache:1
settings:
access_key:
from_secret: cache_s3_access_key
endpoint:
from_secret: cache_s3_endpoint
restore: true
secret_key:
from_secret: cache_s3_secret_key
when:
instance:
- drone.owncloud.services
- drone.owncloud.com

- name: composer-install
pull: always
image: owncloudci/php:7.1
commands:
- make install-composer-deps
environment:
COMPOSER_HOME: /drone/src/.cache/composer

- name: vendorbin-install
pull: always
image: owncloudci/php:7.1
commands:
- make vendor-bin-deps
environment:
COMPOSER_HOME: /drone/src/.cache/composer

- name: yarn-install
pull: always
image: owncloudci/php:7.1
commands:
- make install-nodejs-deps
environment:
NPM_CONFIG_CACHE: /drone/src/.cache/npm
YARN_CACHE_FOLDER: /drone/src/.cache/yarn
bower_storage__packages: /drone/src/.cache/bower

- name: install-server
pull: always
image: owncloudci/php:7.1
commands:
- bash tests/drone/install-server.sh
- php occ a:l
- php occ config:system:set trusted_domains 1 --value=server
- php occ log:manage --level 2
- php occ config:list
- php occ security:certificates:import /drone/server.crt
- php occ security:certificates
environment:
DB_TYPE: sqlite

- name: fix-permissions
pull: always
image: owncloudci/php:7.1
commands:
- chown -R www-data /drone/src

- name: owncloud-log-server
pull: always
image: owncloud/ubuntu:18.04
detach: true
commands:
- tail -f /drone/src/data/owncloud.log

- name: phpunit-tests
pull: always
image: owncloudci/php:7.1
commands:
- su-exec www-data bash tests/drone/test-phpunit.sh
environment:
COVERAGE: true
DB_TYPE: sqlite
FILES_EXTERNAL_TYPE: samba

- name: coverage-upload
pull: always
image: plugins/codecov:2
settings:
files:
- "*.xml"
flags:
- phpunit
paths:
- tests/output/coverage
environment:
CODECOV_TOKEN:
from_secret: codecov_token
when:
instance:
- drone.owncloud.services
- drone.owncloud.com

services:
- name: samba
pull: always
image: owncloudci/samba:latest
command:
- -u
- test;test
- -s
- public;/tmp;yes;no;no;test;none;test
- -S

trigger:
ref:
- refs/pull/**
- refs/tags/**
- refs/heads/master

depends_on:
- coding-standard-php7.3
- phpstan-php7.1
- phan-php7.1
- phan-php7.2
- phan-php7.3

---
kind: pipeline
type: docker
Expand Down Expand Up @@ -3157,130 +3022,6 @@ depends_on:
- phan-php7.2
- phan-php7.3

---
kind: pipeline
type: docker
name: phpunit-php7.1-sqlite-windows

platform:
os: linux
arch: amd64

workspace:
base: /drone
path: src

steps:
- name: cache-restore
pull: always
image: plugins/s3-cache:1
settings:
access_key:
from_secret: cache_s3_access_key
endpoint:
from_secret: cache_s3_endpoint
restore: true
secret_key:
from_secret: cache_s3_secret_key
when:
instance:
- drone.owncloud.services
- drone.owncloud.com

- name: composer-install
pull: always
image: owncloudci/php:7.1
commands:
- make install-composer-deps
environment:
COMPOSER_HOME: /drone/src/.cache/composer

- name: vendorbin-install
pull: always
image: owncloudci/php:7.1
commands:
- make vendor-bin-deps
environment:
COMPOSER_HOME: /drone/src/.cache/composer

- name: yarn-install
pull: always
image: owncloudci/php:7.1
commands:
- make install-nodejs-deps
environment:
NPM_CONFIG_CACHE: /drone/src/.cache/npm
YARN_CACHE_FOLDER: /drone/src/.cache/yarn
bower_storage__packages: /drone/src/.cache/bower

- name: install-server
pull: always
image: owncloudci/php:7.1
commands:
- bash tests/drone/install-server.sh
- php occ a:l
- php occ config:system:set trusted_domains 1 --value=server
- php occ log:manage --level 2
- php occ config:list
- php occ security:certificates:import /drone/server.crt
- php occ security:certificates
environment:
DB_TYPE: sqlite

- name: fix-permissions
pull: always
image: owncloudci/php:7.1
commands:
- chown -R www-data /drone/src

- name: owncloud-log-server
pull: always
image: owncloud/ubuntu:18.04
detach: true
commands:
- tail -f /drone/src/data/owncloud.log

- name: phpunit-tests
pull: always
image: owncloudci/php:7.1
commands:
- su-exec www-data bash tests/drone/test-phpunit.sh
environment:
COVERAGE: true
DB_TYPE: sqlite
FILES_EXTERNAL_TYPE: windows

- name: coverage-upload
pull: always
image: plugins/codecov:2
settings:
files:
- "*.xml"
flags:
- phpunit
paths:
- tests/output/coverage
environment:
CODECOV_TOKEN:
from_secret: codecov_token
when:
instance:
- drone.owncloud.services
- drone.owncloud.com

trigger:
ref:
- refs/pull/**
- refs/tags/**
- refs/heads/master

depends_on:
- coding-standard-php7.3
- phpstan-php7.1
- phan-php7.1
- phan-php7.2
- phan-php7.3

---
kind: pipeline
type: docker
Expand Down Expand Up @@ -14358,9 +14099,7 @@ depends_on:
- phpunit-php7.3-sqlite
- phpunit-php7.3-mariadb10.2
- phpunit-php7.1-sqlite-webdav
- phpunit-php7.1-sqlite-samba
- phpunit-php7.1-sqlite-sftp
- phpunit-php7.1-sqlite-windows
- phpunit-php7.1-sqlite-scality
- apiAuth-mariadb10.2-php7.1
- apiAuthOcs-mariadb10.2-php7.1
Expand Down

0 comments on commit 40955f0

Please sign in to comment.