From bb462f1d572c5698cca07aa84d00ce06b1994403 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 29 Aug 2019 17:18:37 +0545 Subject: [PATCH] Use drone convert to get a new drone matrix --- .drone.yml | 2141 +++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 1802 insertions(+), 339 deletions(-) diff --git a/.drone.yml b/.drone.yml index 971f77b8d..0f1c30fdb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,351 +1,1814 @@ +--- +kind: pipeline +name: matrix-1 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: owncloud-coding-standard + pull: always + image: owncloudci/php:7.2 + commands: + - make test-php-style + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-2 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: owncloud-coding-standard + pull: always + image: owncloudci/php:7.1 + commands: + - make test-php-style + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-3 + +platform: + os: linux + arch: amd64 + workspace: base: /var/www/owncloud path: apps/contacts -branches: [master, release*, release/*] +steps: +- name: owncloud-coding-standard + pull: always + image: owncloudci/php:7.0 + commands: + - make test-php-style -pipeline: - install-core: - image: owncloudci/core - version: ${OC_VERSION} - pull: true - db_type: ${DB_TYPE} - db_name: ${DB_NAME} - db_host: ${DB_TYPE} +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-4 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: sqlite + db_name: owncloud + db_password: owncloud + db_type: sqlite db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: js-tests + pull: always + image: owncloudci/php:7.0 + commands: + - make test-js + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: selenium + pull: always + image: selenium/standalone-firefox-debug:latest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-5 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: sqlite + db_name: owncloud db_password: owncloud - when: - matrix: - NEED_CORE: true - - install-app: - image: owncloudci/php:${PHP_VERSION} - pull: true - commands: - - make npm - - cd /var/www/owncloud/ - - php occ a:l - - php occ a:e contacts - - 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 - - integration-tests: - image: owncloudci/php:${PHP_VERSION} - pull: true - environment: - - COVERAGE=${COVERAGE} - commands: - - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi - - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi - when: - matrix: - TEST_SUITE: integration - - js-tests: - image: owncloudci/php:${PHP_VERSION} - pull: true - commands: - - make test-js - when: - matrix: - TEST_SUITE: js - - codecov: - image: plugins/codecov:2 - secrets: [codecov_token] - pull: true + db_type: sqlite + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: js-tests + pull: always + image: owncloudci/php:7.1 + commands: + - make test-js + +- name: codecov-js + pull: always + image: plugins/codecov:2 + settings: paths: - - "tests/output/*.xml" - when: - matrix: - COVERAGE: true - - codecov-js: - image: plugins/codecov:2 - secrets: [codecov_token] - pull: true + - coverage/*.info + environment: + CODECOV_TOKEN: + from_secret: codecov_token + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: selenium + pull: always + image: selenium/standalone-firefox-debug:latest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-6 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: sqlite + db_name: owncloud + db_password: owncloud + db_type: sqlite + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.1 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-7 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: mysql + db_name: owncloud + db_password: owncloud + db_type: mysql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.1 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: mysql + pull: if-not-exists + image: mysql:5.5 + environment: + MYSQL_DATABASE: owncloud + MYSQL_PASSWORD: owncloud + MYSQL_ROOT_PASSWORD: owncloud + MYSQL_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-8 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: pgsql + db_name: owncloud + db_password: owncloud + db_type: pgsql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.1 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: pgsql + pull: if-not-exists + image: postgres:9.4 + environment: + POSTGRES_DB: owncloud + POSTGRES_PASSWORD: owncloud + POSTGRES_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-9 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: oci + db_name: XE + db_password: owncloud + db_type: oci + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.1 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: oci + pull: if-not-exists + image: deepdiver/docker-oracle-xe-11g + environment: + ORACLE_DB: XE + ORACLE_PASSWORD: oracle + ORACLE_USER: system + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-10 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: mysql + db_name: owncloud + db_password: owncloud + db_type: mysql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.2 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.2 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: mysql + pull: if-not-exists + image: mysql:5.5 + environment: + MYSQL_DATABASE: owncloud + MYSQL_PASSWORD: owncloud + MYSQL_ROOT_PASSWORD: owncloud + MYSQL_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-11 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: mysql + db_name: owncloud + db_password: owncloud + db_type: mysql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.3 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.3 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: mysql + pull: if-not-exists + image: mysql:5.5 + environment: + MYSQL_DATABASE: owncloud + MYSQL_PASSWORD: owncloud + MYSQL_ROOT_PASSWORD: owncloud + MYSQL_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-12 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: sqlite + db_name: owncloud + db_password: owncloud + db_type: sqlite + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.0 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-13 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: mysql + db_name: owncloud + db_password: owncloud + db_type: mysql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.0 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: mysql + pull: if-not-exists + image: mysql:5.5 + environment: + MYSQL_DATABASE: owncloud + MYSQL_PASSWORD: owncloud + MYSQL_ROOT_PASSWORD: owncloud + MYSQL_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-14 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: pgsql + db_name: owncloud + db_password: owncloud + db_type: pgsql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.0 + commands: + - if [ -z "true" ]; then make test-php-unit; fi + - if [ "true" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: true + +- name: codecov + pull: always + image: plugins/codecov:2 + settings: paths: - - "coverage/*.info" - when: - matrix: - COVERAGE_JS: true - - notify: - image: plugins/slack:1 - pull: true - secrets: [slack_webhook] + - tests/output/*.xml + environment: + CODECOV_TOKEN: + from_secret: codecov_token + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: pgsql + pull: if-not-exists + image: postgres:9.4 + environment: + POSTGRES_DB: owncloud + POSTGRES_PASSWORD: owncloud + POSTGRES_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-15 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: oci + db_name: XE + db_password: owncloud + db_type: oci + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: phpunit-tests + pull: always + image: owncloudci/php:7.0 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: oci + pull: if-not-exists + image: deepdiver/docker-oracle-xe-11g + environment: + ORACLE_DB: XE + ORACLE_PASSWORD: oracle + ORACLE_USER: system + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-16 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: sqlite + db_name: owncloud + db_password: owncloud + db_type: sqlite + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.1 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-17 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: mysql + db_name: owncloud + db_password: owncloud + db_type: mysql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.1 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: mysql + pull: if-not-exists + image: mysql:5.5 + environment: + MYSQL_DATABASE: owncloud + MYSQL_PASSWORD: owncloud + MYSQL_ROOT_PASSWORD: owncloud + MYSQL_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-18 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: pgsql + db_name: owncloud + db_password: owncloud + db_type: pgsql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.1 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: channel: builds - when: - status: [failure, changed] - event: [push, tag] + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed services: - selenium: - image: selenium/standalone-firefox-debug:latest - pull: true - when: - matrix: - TEST_SUITE: js - - 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 - -matrix: - include: - # owncloud-coding-standard - - PHP_VERSION: 7.2 - TEST_SUITE: owncloud-coding-standard - - - PHP_VERSION: 7.1 - TEST_SUITE: owncloud-coding-standard - - - PHP_VERSION: 7.0 - TEST_SUITE: owncloud-coding-standard - - # Js tests - - PHP_VERSION: 7.0 - OC_VERSION: daily-master-qa - DB_TYPE: sqlite - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - TEST_SUITE: js - - - PHP_VERSION: 7.1 - OC_VERSION: daily-master-qa - DB_TYPE: sqlite - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - TEST_SUITE: js - COVERAGE_JS: true - - # Unit Tests - - PHP_VERSION: 7.1 - OC_VERSION: daily-master-qa - TEST_SUITE: phpunit - DB_TYPE: sqlite - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - 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.1 - OC_VERSION: daily-master-qa - TEST_SUITE: phpunit - DB_TYPE: pgsql - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.1 - OC_VERSION: daily-master-qa - TEST_SUITE: phpunit - DB_TYPE: oci - DB_NAME: XE - 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.3 - 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-master-qa - TEST_SUITE: phpunit - DB_TYPE: sqlite - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.0 - 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-master-qa - TEST_SUITE: phpunit - DB_TYPE: pgsql - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - COVERAGE: true - - - PHP_VERSION: 7.0 - OC_VERSION: daily-master-qa - TEST_SUITE: phpunit - DB_TYPE: oci - DB_NAME: XE - NEED_CORE: true - NEED_INSTALL_APP: true - - # Integration Tests - - PHP_VERSION: 7.1 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: sqlite - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.1 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: mysql - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.1 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: pgsql - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.1 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: oci - DB_NAME: XE - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.2 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: mysql - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.0 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: sqlite - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.0 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: mysql - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.0 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: pgsql - DB_NAME: owncloud - NEED_CORE: true - NEED_INSTALL_APP: true - - - PHP_VERSION: 7.0 - OC_VERSION: daily-master-qa - TEST_SUITE: integration - DB_TYPE: oci - DB_NAME: XE - NEED_CORE: true - NEED_INSTALL_APP: true +- name: pgsql + pull: if-not-exists + image: postgres:9.4 + environment: + POSTGRES_DB: owncloud + POSTGRES_PASSWORD: owncloud + POSTGRES_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-19 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: oci + db_name: XE + db_password: owncloud + db_type: oci + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.1 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.1 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: oci + pull: if-not-exists + image: deepdiver/docker-oracle-xe-11g + environment: + ORACLE_DB: XE + ORACLE_PASSWORD: oracle + ORACLE_USER: system + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-20 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: mysql + db_name: owncloud + db_password: owncloud + db_type: mysql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.2 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.2 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: mysql + pull: if-not-exists + image: mysql:5.5 + environment: + MYSQL_DATABASE: owncloud + MYSQL_PASSWORD: owncloud + MYSQL_ROOT_PASSWORD: owncloud + MYSQL_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-21 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: sqlite + db_name: owncloud + db_password: owncloud + db_type: sqlite + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.0 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-22 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: mysql + db_name: owncloud + db_password: owncloud + db_type: mysql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.0 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: mysql + pull: if-not-exists + image: mysql:5.5 + environment: + MYSQL_DATABASE: owncloud + MYSQL_PASSWORD: owncloud + MYSQL_ROOT_PASSWORD: owncloud + MYSQL_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-23 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: pgsql + db_name: owncloud + db_password: owncloud + db_type: pgsql + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.0 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: pgsql + pull: if-not-exists + image: postgres:9.4 + environment: + POSTGRES_DB: owncloud + POSTGRES_PASSWORD: owncloud + POSTGRES_USER: autotest + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +--- +kind: pipeline +name: matrix-24 + +platform: + os: linux + arch: amd64 + +workspace: + base: /var/www/owncloud + path: apps/contacts + +steps: +- name: install-core + pull: always + image: owncloudci/core + settings: + db_host: oci + db_name: XE + db_password: owncloud + db_type: oci + db_username: autotest + version: daily-master-qa + +- name: install-app + pull: always + image: owncloudci/php:7.0 + commands: + - make npm + - cd /var/www/owncloud/ + - php occ a:l + - php occ a:e contacts + - 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 + +- name: integration-tests + pull: always + image: owncloudci/php:7.0 + commands: + - if [ -z "${COVERAGE}" ]; then make test-php-integration; fi + - if [ "${COVERAGE}" = "true" ]; then make test-php-integration-dbg; fi + environment: + COVERAGE: ${COVERAGE} + +- name: notify + pull: always + image: plugins/slack:1 + settings: + channel: builds + environment: + SLACK_WEBHOOK: + from_secret: slack_webhook + when: + event: + - push + - tag + status: + - failure + - changed + +services: +- name: oci + pull: if-not-exists + image: deepdiver/docker-oracle-xe-11g + environment: + ORACLE_DB: XE + ORACLE_PASSWORD: oracle + ORACLE_USER: system + +trigger: + ref: + - refs/tags/** + - refs/pull/** + - refs/pull-requests/** + - refs/merge-requests/** + - refs/heads/master + - refs/heads/release* + - refs/heads/release/* + +...