@@ -131,7 +131,7 @@ trigger:
131
131
---
132
132
kind : pipeline
133
133
type : docker
134
- name : test-stable
134
+ name : test-stable-22
135
135
136
136
steps :
137
137
- name : test
@@ -210,6 +210,94 @@ services:
210
210
- su www-data -c "php /var/www/html/occ app:enable password_policy"
211
211
- /usr/local/bin/run.sh
212
212
213
+ trigger :
214
+ branch :
215
+ - master
216
+ event :
217
+ - push
218
+ - pull_request
219
+ ---
220
+ kind : pipeline
221
+ type : docker
222
+ name : test-stable-21
223
+
224
+ steps :
225
+ - name : test
226
+ image : ghcr.io/nextcloud/continuous-integration-android8:2
227
+ privileged : true
228
+ environment :
229
+ LOG_USERNAME :
230
+ from_secret : LOG_USERNAME
231
+ LOG_PASSWORD :
232
+ from_secret : LOG_PASSWORD
233
+ GIT_USERNAME :
234
+ from_secret : GIT_USERNAME
235
+ GIT_TOKEN :
236
+ from_secret : GIT_TOKEN
237
+ commands :
238
+ - emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
239
+ - sed -i s"#server#server-stable#" gradle.properties
240
+ - sed -i s"#1#5#" ./src/androidTest/java/com/owncloud/android/RetryTestRule.kt
241
+ - ./gradlew assembleDebug
242
+ - ./scripts/wait_for_emulator.sh
243
+ - ./scripts/wait_for_server.sh server-stable
244
+ - scripts/deleteOutdatedComments.sh "stable" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
245
+ - scripts/deleteOutdatedComments.sh "stable" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
246
+ - ./gradlew jacocoTestDebugUnitTestReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
247
+ - ./gradlew installDebugAndroidTest
248
+ - ./gradlew createDebugCoverageReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
249
+ - ./gradlew combinedTestReport
250
+ - curl -Os https://uploader.codecov.io/latest/linux/codecov
251
+ - chmod +x codecov
252
+ - ./codecov -t 2eec98c3-ff20-4cad-9e08-463471a33431
253
+
254
+ - name : notify
255
+ image : drillster/drone-email
256
+ settings :
257
+ port : 587
258
+
259
+ recipients_only : true
260
+ username :
261
+ from_secret : EMAIL_USERNAME
262
+ password :
263
+ from_secret : EMAIL_PASSWORD
264
+ recipients :
265
+ from_secret : EMAIL_RECIPIENTS
266
+ host :
267
+ from_secret : EMAIL_HOST
268
+ when :
269
+ event :
270
+ - push
271
+ status :
272
+ - failure
273
+ branch :
274
+ - master
275
+ - stable-*
276
+
277
+ services :
278
+ - name : server-stable
279
+ image : nextcloudci/server:server-17
280
+ commands :
281
+ - BRANCH='stable21' /usr/local/bin/initnc.sh
282
+ - su www-data -c "php /var/www/html/occ log:manage --level warning"
283
+ - su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
284
+ - su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
285
+ - su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
286
+ - su www-data -c "OC_PASS=test php /var/www/html/occ user:add --password-from-env --display-name='Test@Test' test@test"
287
+ - su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
288
+ - su www-data -c "php /var/www/html/occ group:add users"
289
+ - su www-data -c "php /var/www/html/occ group:adduser users user1"
290
+ - su www-data -c "php /var/www/html/occ group:adduser users user2"
291
+ - su www-data -c "git clone -b stable21 https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
292
+ - su www-data -c "php /var/www/html/occ app:enable activity"
293
+ - su www-data -c "git clone -b stable21 https://github.com/nextcloud/text.git /var/www/html/apps/text/"
294
+ - su www-data -c "php /var/www/html/occ app:enable text"
295
+ - su www-data -c "git clone -b stable21 https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
296
+ - su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
297
+ - su www-data -c "git clone -b stable21 https://github.com/nextcloud/password_policy.git /var/www/html/apps/password_policy/"
298
+ - su www-data -c "php /var/www/html/occ app:enable password_policy"
299
+ - /usr/local/bin/run.sh
300
+
213
301
trigger :
214
302
branch :
215
303
- master
0 commit comments