summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-26 17:12:14 +0100
committerJoas Schilling <coding@schilljs.com>2020-10-30 10:38:51 +0100
commit70599c284588b89dc7872cf0b9860f4b1b6646fc (patch)
treeded264e7b004cbf30225e74841f384c7f12fc207 /.drone.yml
parent28617126fed2a761b4c0fa254210edd38085c927 (diff)
Execute integration tests on drone
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml124
1 files changed, 124 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index a9dfdcf71..f2535429e 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -335,6 +335,41 @@ trigger:
---
kind: pipeline
+name: int-sqlite-command
+
+steps:
+ - name: integration-command
+ image: nextcloudci/php7.3:php7.3-5
+ environment:
+ APP_NAME: spreed
+ CORE_BRANCH: master
+ DATABASEHOST: sqlite
+ 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
+ - cd apps/$APP_NAME
+
+ # Run integration tests
+ - cd tests/integration/
+ - bash run.sh features/command
+
+services:
+ - name: cache
+ image: redis
+
+trigger:
+ branch:
+ - master
+ - stable*
+ event:
+ - pull_request
+ - push
+
+---
+kind: pipeline
name: int-sqlite-conversation
steps:
@@ -495,6 +530,51 @@ trigger:
---
kind: pipeline
+name: int-mysql-command
+
+steps:
+ - name: integration-command
+ image: nextcloudci/php7.3:php7.3-5
+ environment:
+ APP_NAME: spreed
+ CORE_BRANCH: master
+ DATABASEHOST: mysql
+ 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
+ - cd apps/$APP_NAME
+
+ # Run integration tests
+ - cd tests/integration/
+ - bash run.sh features/command
+
+services:
+ - name: cache
+ image: redis
+ - name: mysql
+ image: mysql:5.7.22
+ environment:
+ MYSQL_ROOT_PASSWORD: owncloud
+ MYSQL_USER: oc_autotest
+ MYSQL_PASSWORD: owncloud
+ MYSQL_DATABASE: oc_autotest
+ command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
+ tmpfs:
+ - /var/lib/mysql
+
+trigger:
+ branch:
+ - master
+ - stable*
+ event:
+# - pull_request
+ - push
+
+---
+kind: pipeline
name: int-mysql-conversation
steps:
@@ -673,6 +753,50 @@ trigger:
---
kind: pipeline
+name: int-pgsql-command
+
+steps:
+ - name: integration-command
+ image: nextcloudci/php7.3:php7.3-5
+ environment:
+ APP_NAME: spreed
+ CORE_BRANCH: master
+ DATABASEHOST: pgsql
+ 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
+ - cd apps/$APP_NAME
+
+ # Run integration tests
+ - cd tests/integration/
+ - bash run.sh features/command
+
+services:
+ - name: cache
+ image: redis
+ - name: pgsql
+ image: postgres:10
+ environment:
+ POSTGRES_USER: oc_autotest
+ POSTGRES_DB: oc_autotest_dummy
+ POSTGRES_HOST_AUTH_METHOD: trust
+ POSTGRES_PASSWORD:
+ tmpfs:
+ - /var/lib/postgresql/data
+
+trigger:
+ branch:
+ - master
+ - stable*
+ event:
+# - pull_request
+ - push
+
+---
+kind: pipeline
name: int-pgsql-conversation
steps: