Skip to content

Commit 73033ce

Browse files
committed
Execute the test on CI
Signed-off-by: Joas Schilling <[email protected]>
1 parent f2482bc commit 73033ce

File tree

3 files changed

+136
-0
lines changed

3 files changed

+136
-0
lines changed

.drone.jsonnet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ local PipelinePostgreSQL(test_set) = Pipeline(
125125
PipelineSQLite("conversation"),
126126
PipelineSQLite("conversation-2"),
127127
PipelineSQLite("federation"),
128+
PipelineSQLite("integration"),
128129
PipelineSQLite("reaction"),
129130
PipelineSQLite("sharing"),
130131
PipelineSQLite("sharing-2"),
@@ -135,6 +136,7 @@ local PipelinePostgreSQL(test_set) = Pipeline(
135136
PipelineMySQL("conversation"),
136137
PipelineMySQL("conversation-2"),
137138
PipelineMySQL("federation"),
139+
PipelineMySQL("integration"),
138140
PipelineMySQL("reaction"),
139141
PipelineMySQL("sharing"),
140142
PipelineMySQL("sharing-2"),
@@ -145,6 +147,7 @@ local PipelinePostgreSQL(test_set) = Pipeline(
145147
PipelinePostgreSQL("conversation"),
146148
PipelinePostgreSQL("conversation-2"),
147149
PipelinePostgreSQL("federation"),
150+
PipelinePostgreSQL("integration"),
148151
PipelinePostgreSQL("reaction"),
149152
PipelinePostgreSQL("sharing"),
150153
PipelinePostgreSQL("sharing-2"),

.drone.yml

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,42 @@ trigger:
218218
- push
219219
---
220220
kind: pipeline
221+
name: int-sqlite-integration
222+
services:
223+
- image: ghcr.io/nextcloud/continuous-integration-redis:latest
224+
name: cache
225+
steps:
226+
- commands:
227+
- bash tests/drone-run-integration-tests.sh || exit 0
228+
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
229+
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
230+
- cd ../server
231+
- ./occ app:enable $APP_NAME
232+
- git clone --depth 1 -b $NOTIFICATIONS_BRANCH https://github.com/nextcloud/notifications
233+
apps/notifications
234+
- ./occ app:enable notifications
235+
- cd apps/$APP_NAME
236+
- composer --version
237+
- composer self-update --2
238+
- composer install
239+
- cd tests/integration/
240+
- bash run.sh features/integration
241+
environment:
242+
APP_NAME: spreed
243+
CORE_BRANCH: master
244+
DATABASEHOST: sqlite
245+
GUESTS_BRANCH: master
246+
NOTIFICATIONS_BRANCH: master
247+
image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
248+
name: integration-integration
249+
trigger:
250+
branch:
251+
- master
252+
- stable*
253+
event:
254+
- push
255+
---
256+
kind: pipeline
221257
name: int-sqlite-reaction
222258
services:
223259
- image: ghcr.io/nextcloud/continuous-integration-redis:latest
@@ -634,6 +670,57 @@ trigger:
634670
- push
635671
---
636672
kind: pipeline
673+
name: int-mysql-integration
674+
services:
675+
- image: ghcr.io/nextcloud/continuous-integration-redis:latest
676+
name: cache
677+
- command:
678+
- --innodb_large_prefix=true
679+
- --innodb_file_format=barracuda
680+
- --innodb_file_per_table=true
681+
- --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
682+
environment:
683+
MYSQL_DATABASE: oc_autotest
684+
MYSQL_PASSWORD: owncloud
685+
MYSQL_ROOT_PASSWORD: owncloud
686+
MYSQL_USER: oc_autotest
687+
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.4:10.4
688+
name: mysql
689+
tmpfs:
690+
- /var/lib/mysql
691+
steps:
692+
- commands:
693+
- bash tests/drone-run-integration-tests.sh || exit 0
694+
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
695+
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
696+
- cd ../server
697+
- ./occ app:enable $APP_NAME
698+
- git clone --depth 1 -b $NOTIFICATIONS_BRANCH https://github.com/nextcloud/notifications
699+
apps/notifications
700+
- ./occ app:enable notifications
701+
- cd apps/$APP_NAME
702+
- composer --version
703+
- composer self-update --2
704+
- composer install
705+
- cd tests/integration/
706+
- bash run.sh features/integration
707+
environment:
708+
APP_NAME: spreed
709+
CORE_BRANCH: master
710+
DATABASEHOST: mysql
711+
GUESTS_BRANCH: master
712+
NOTIFICATIONS_BRANCH: master
713+
image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
714+
name: integration-integration
715+
trigger:
716+
branch:
717+
- master
718+
- stable*
719+
event:
720+
- pull_request
721+
- push
722+
---
723+
kind: pipeline
637724
name: int-mysql-reaction
638725
services:
639726
- image: ghcr.io/nextcloud/continuous-integration-redis:latest
@@ -1059,6 +1146,51 @@ trigger:
10591146
- push
10601147
---
10611148
kind: pipeline
1149+
name: int-pgsql-integration
1150+
services:
1151+
- image: ghcr.io/nextcloud/continuous-integration-redis:latest
1152+
name: cache
1153+
- environment:
1154+
POSTGRES_DB: oc_autotest_dummy
1155+
POSTGRES_HOST_AUTH_METHOD: trust
1156+
POSTGRES_PASSWORD: ""
1157+
POSTGRES_USER: oc_autotest
1158+
image: ghcr.io/nextcloud/continuous-integration-postgres-13:postgres-13
1159+
name: pgsql
1160+
tmpfs:
1161+
- /var/lib/postgresql/data
1162+
steps:
1163+
- commands:
1164+
- bash tests/drone-run-integration-tests.sh || exit 0
1165+
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
1166+
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
1167+
- cd ../server
1168+
- ./occ app:enable $APP_NAME
1169+
- git clone --depth 1 -b $NOTIFICATIONS_BRANCH https://github.com/nextcloud/notifications
1170+
apps/notifications
1171+
- ./occ app:enable notifications
1172+
- cd apps/$APP_NAME
1173+
- composer --version
1174+
- composer self-update --2
1175+
- composer install
1176+
- cd tests/integration/
1177+
- bash run.sh features/integration
1178+
environment:
1179+
APP_NAME: spreed
1180+
CORE_BRANCH: master
1181+
DATABASEHOST: pgsql
1182+
GUESTS_BRANCH: master
1183+
NOTIFICATIONS_BRANCH: master
1184+
image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
1185+
name: integration-integration
1186+
trigger:
1187+
branch:
1188+
- master
1189+
- stable*
1190+
event:
1191+
- push
1192+
---
1193+
kind: pipeline
10621194
name: int-pgsql-reaction
10631195
services:
10641196
- image: ghcr.io/nextcloud/continuous-integration-redis:latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/tests/php/.phpunit.result.cache
1919
/tests/integration/vendor
2020
/tests/integration/output
21+
/drone
2122

2223
# Compiled javascript
2324
/js

0 commit comments

Comments
 (0)