Skip to content

Commit 1cbaf83

Browse files
Run tests also on older server versions
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 2afb96b commit 1cbaf83

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.drone.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ steps:
187187
- stable-*
188188

189189
services:
190-
- name: server-stable
190+
- name: server-stable-${SERVER_VERSION}
191191
image: nextcloudci/server:server-17
192192
commands:
193-
- BRANCH='stable22' /usr/local/bin/initnc.sh
193+
- BRANCH='stable${SERVER_VERSION}' /usr/local/bin/initnc.sh
194194
- su www-data -c "php /var/www/html/occ log:manage --level warning"
195195
- su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
196196
- su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
@@ -200,16 +200,21 @@ services:
200200
- su www-data -c "php /var/www/html/occ group:add users"
201201
- su www-data -c "php /var/www/html/occ group:adduser users user1"
202202
- su www-data -c "php /var/www/html/occ group:adduser users user2"
203-
- su www-data -c "git clone -b stable22 https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
203+
- su www-data -c "git clone -b stable${SERVER_VERSION} https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
204204
- su www-data -c "php /var/www/html/occ app:enable activity"
205-
- su www-data -c "git clone -b stable22 https://github.com/nextcloud/text.git /var/www/html/apps/text/"
205+
- su www-data -c "git clone -b stable${SERVER_VERSION} https://github.com/nextcloud/text.git /var/www/html/apps/text/"
206206
- su www-data -c "php /var/www/html/occ app:enable text"
207-
- su www-data -c "git clone -b stable22 https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
207+
- su www-data -c "git clone -b stable${SERVER_VERSION} https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
208208
- su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
209-
- su www-data -c "git clone -b stable22 https://github.com/nextcloud/password_policy.git /var/www/html/apps/password_policy/"
209+
- su www-data -c "git clone -b stable${SERVER_VERSION} https://github.com/nextcloud/password_policy.git /var/www/html/apps/password_policy/"
210210
- su www-data -c "php /var/www/html/occ app:enable password_policy"
211211
- /usr/local/bin/run.sh
212212

213+
matrix:
214+
SERVER_VERSION:
215+
- 22
216+
- 21
217+
213218
trigger:
214219
branch:
215220
- master

0 commit comments

Comments
 (0)