summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.drone.jsonnet3
-rw-r--r--.drone.yml132
-rw-r--r--.gitignore1
3 files changed, 136 insertions, 0 deletions
diff --git a/.drone.jsonnet b/.drone.jsonnet
index 888c316e3..4e065349b 100644
--- a/.drone.jsonnet
+++ b/.drone.jsonnet
@@ -125,6 +125,7 @@ local PipelinePostgreSQL(test_set) = Pipeline(
PipelineSQLite("conversation"),
PipelineSQLite("conversation-2"),
PipelineSQLite("federation"),
+ PipelineSQLite("integration"),
PipelineSQLite("reaction"),
PipelineSQLite("sharing"),
PipelineSQLite("sharing-2"),
@@ -135,6 +136,7 @@ local PipelinePostgreSQL(test_set) = Pipeline(
PipelineMySQL("conversation"),
PipelineMySQL("conversation-2"),
PipelineMySQL("federation"),
+ PipelineMySQL("integration"),
PipelineMySQL("reaction"),
PipelineMySQL("sharing"),
PipelineMySQL("sharing-2"),
@@ -145,6 +147,7 @@ local PipelinePostgreSQL(test_set) = Pipeline(
PipelinePostgreSQL("conversation"),
PipelinePostgreSQL("conversation-2"),
PipelinePostgreSQL("federation"),
+ PipelinePostgreSQL("integration"),
PipelinePostgreSQL("reaction"),
PipelinePostgreSQL("sharing"),
PipelinePostgreSQL("sharing-2"),
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
diff --git a/.gitignore b/.gitignore
index 7d31bd4ae..271d2cd02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,7 @@
/tests/php/.phpunit.result.cache
/tests/integration/vendor
/tests/integration/output
+/drone
# Compiled javascript
/js