summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-09-19 15:52:23 +0200
committerJoas Schilling <coding@schilljs.com>2022-09-19 15:52:23 +0200
commit73033cecfc0ee476664de47e29489bcc3b00fce2 (patch)
treeb10753a3c969d4c84cc85eec16947a913f2e1e68 /.drone.yml
parentf2482bcae4291ad03826f02455f80808cec0661a (diff)
Execute the test on CI
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml132
1 files changed, 132 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 94ff45fcb..e02e4ec79 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -218,6 +218,42 @@ trigger:
- push
---
kind: pipeline
+name: int-sqlite-integration
+services:
+- image: ghcr.io/nextcloud/continuous-integration-redis:latest
+ name: cache
+steps:
+- commands:
+ - bash tests/drone-run-integration-tests.sh || exit 0
+ - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
+ - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
+ - cd ../server
+ - ./occ app:enable $APP_NAME
+ - git clone --depth 1 -b $NOTIFICATIONS_BRANCH https://github.com/nextcloud/notifications
+ apps/notifications
+ - ./occ app:enable notifications
+ - cd apps/$APP_NAME
+ - composer --version
+ - composer self-update --2
+ - composer install
+ - cd tests/integration/
+ - bash run.sh features/integration
+ environment:
+ APP_NAME: spreed
+ CORE_BRANCH: master
+ DATABASEHOST: sqlite
+ GUESTS_BRANCH: master
+ NOTIFICATIONS_BRANCH: master
+ image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
+ name: integration-integration
+trigger:
+ branch:
+ - master
+ - stable*
+ event:
+ - push
+---
+kind: pipeline
name: int-sqlite-reaction
services:
- image: ghcr.io/nextcloud/continuous-integration-redis:latest
@@ -634,6 +670,57 @@ trigger:
- push
---
kind: pipeline
+name: int-mysql-integration
+services:
+- image: ghcr.io/nextcloud/continuous-integration-redis:latest
+ name: cache
+- command:
+ - --innodb_large_prefix=true
+ - --innodb_file_format=barracuda
+ - --innodb_file_per_table=true
+ - --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
+ environment:
+ MYSQL_DATABASE: oc_autotest
+ MYSQL_PASSWORD: owncloud
+ MYSQL_ROOT_PASSWORD: owncloud
+ MYSQL_USER: oc_autotest
+ image: ghcr.io/nextcloud/continuous-integration-mariadb-10.4:10.4
+ name: mysql
+ tmpfs:
+ - /var/lib/mysql
+steps:
+- commands:
+ - bash tests/drone-run-integration-tests.sh || exit 0
+ - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
+ - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
+ - cd ../server
+ - ./occ app:enable $APP_NAME
+ - git clone --depth 1 -b $NOTIFICATIONS_BRANCH https://github.com/nextcloud/notifications
+ apps/notifications
+ - ./occ app:enable notifications
+ - cd apps/$APP_NAME
+ - composer --version
+ - composer self-update --2
+ - composer install
+ - cd tests/integration/
+ - bash run.sh features/integration
+ environment:
+ APP_NAME: spreed
+ CORE_BRANCH: master
+ DATABASEHOST: mysql
+ GUESTS_BRANCH: master
+ NOTIFICATIONS_BRANCH: master
+ image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
+ name: integration-integration
+trigger:
+ branch:
+ - master
+ - stable*
+ event:
+ - pull_request
+ - push
+---
+kind: pipeline
name: int-mysql-reaction
services:
- image: ghcr.io/nextcloud/continuous-integration-redis:latest
@@ -1059,6 +1146,51 @@ trigger:
- push
---
kind: pipeline
+name: int-pgsql-integration
+services:
+- image: ghcr.io/nextcloud/continuous-integration-redis:latest
+ name: cache
+- environment:
+ POSTGRES_DB: oc_autotest_dummy
+ POSTGRES_HOST_AUTH_METHOD: trust
+ POSTGRES_PASSWORD: ""
+ POSTGRES_USER: oc_autotest
+ image: ghcr.io/nextcloud/continuous-integration-postgres-13:postgres-13
+ name: pgsql
+ tmpfs:
+ - /var/lib/postgresql/data
+steps:
+- commands:
+ - bash tests/drone-run-integration-tests.sh || exit 0
+ - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
+ - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
+ - cd ../server
+ - ./occ app:enable $APP_NAME
+ - git clone --depth 1 -b $NOTIFICATIONS_BRANCH https://github.com/nextcloud/notifications
+ apps/notifications
+ - ./occ app:enable notifications
+ - cd apps/$APP_NAME
+ - composer --version
+ - composer self-update --2
+ - composer install
+ - cd tests/integration/
+ - bash run.sh features/integration
+ environment:
+ APP_NAME: spreed
+ CORE_BRANCH: master
+ DATABASEHOST: pgsql
+ GUESTS_BRANCH: master
+ NOTIFICATIONS_BRANCH: master
+ image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
+ name: integration-integration
+trigger:
+ branch:
+ - master
+ - stable*
+ event:
+ - push
+---
+kind: pipeline
name: int-pgsql-reaction
services:
- image: ghcr.io/nextcloud/continuous-integration-redis:latest