Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobiasKaminsky <tobias@kaminsky.me>2021-10-29 11:39:54 +0300
committertobiasKaminsky <tobias@kaminsky.me>2021-10-29 12:04:51 +0300
commit420f46cf28ec81f8896e653cac581595b85ee9e2 (patch)
treea357502b97674a550d9cc6690d3cb44f38f1d8b3
parent2afb96ba5605cbf23f7fb097ef77166359e52aba (diff)
Run tests also on older server versionsoldServer
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
-rw-r--r--.drone.yml98
1 files changed, 93 insertions, 5 deletions
diff --git a/.drone.yml b/.drone.yml
index d31ef66f..8060534b 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -131,7 +131,7 @@ trigger:
---
kind: pipeline
type: docker
-name: test-stable
+name: test-stable-22
steps:
- name: test
@@ -153,11 +153,11 @@ steps:
- ./gradlew assembleDebug
- ./scripts/wait_for_emulator.sh
- ./scripts/wait_for_server.sh server-stable
- - scripts/deleteOutdatedComments.sh "stable" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
- - scripts/deleteOutdatedComments.sh "stable" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
- - ./gradlew jacocoTestDebugUnitTestReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
+ - scripts/deleteOutdatedComments.sh "stable-21" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
+ - scripts/deleteOutdatedComments.sh "stable-21" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
+ - ./gradlew jacocoTestDebugUnitTestReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable-22" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
- ./gradlew installDebugAndroidTest
- - ./gradlew createDebugCoverageReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
+ - ./gradlew createDebugCoverageReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable-22" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
- ./gradlew combinedTestReport
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
@@ -219,6 +219,94 @@ trigger:
---
kind: pipeline
type: docker
+name: test-stable-21
+
+steps:
+ - name: test
+ image: ghcr.io/nextcloud/continuous-integration-android8:2
+ privileged: true
+ environment:
+ LOG_USERNAME:
+ from_secret: LOG_USERNAME
+ LOG_PASSWORD:
+ from_secret: LOG_PASSWORD
+ GIT_USERNAME:
+ from_secret: GIT_USERNAME
+ GIT_TOKEN:
+ from_secret: GIT_TOKEN
+ commands:
+ - emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
+ - sed -i s"#server#server-stable#" gradle.properties
+ - sed -i s"#1#5#" ./src/androidTest/java/com/owncloud/android/RetryTestRule.kt
+ - ./gradlew assembleDebug
+ - ./scripts/wait_for_emulator.sh
+ - ./scripts/wait_for_server.sh server-stable
+ - scripts/deleteOutdatedComments.sh "stable-21" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
+ - scripts/deleteOutdatedComments.sh "stable-21" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
+ - ./gradlew jacocoTestDebugUnitTestReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable-21" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
+ - ./gradlew installDebugAndroidTest
+ - ./gradlew createDebugCoverageReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable-21" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
+ - ./gradlew combinedTestReport
+ - curl -Os https://uploader.codecov.io/latest/linux/codecov
+ - chmod +x codecov
+ - ./codecov -t 2eec98c3-ff20-4cad-9e08-463471a33431
+
+ - name: notify
+ image: drillster/drone-email
+ settings:
+ port: 587
+ from: nextcloud-drone@kaminsky.me
+ recipients_only: true
+ username:
+ from_secret: EMAIL_USERNAME
+ password:
+ from_secret: EMAIL_PASSWORD
+ recipients:
+ from_secret: EMAIL_RECIPIENTS
+ host:
+ from_secret: EMAIL_HOST
+ when:
+ event:
+ - push
+ status:
+ - failure
+ branch:
+ - master
+ - stable-*
+
+services:
+ - name: server-stable
+ image: nextcloudci/server:server-17
+ commands:
+ - BRANCH='stable21' /usr/local/bin/initnc.sh
+ - su www-data -c "php /var/www/html/occ log:manage --level warning"
+ - su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
+ - su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
+ - su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
+ - su www-data -c "OC_PASS=test php /var/www/html/occ user:add --password-from-env --display-name='Test@Test' test@test"
+ - su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
+ - su www-data -c "php /var/www/html/occ group:add users"
+ - su www-data -c "php /var/www/html/occ group:adduser users user1"
+ - su www-data -c "php /var/www/html/occ group:adduser users user2"
+ - su www-data -c "git clone -b stable21 https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
+ - su www-data -c "php /var/www/html/occ app:enable activity"
+ - su www-data -c "git clone -b stable21 https://github.com/nextcloud/text.git /var/www/html/apps/text/"
+ - su www-data -c "php /var/www/html/occ app:enable text"
+ - 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/"
+ - su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
+ - su www-data -c "git clone -b stable21 https://github.com/nextcloud/password_policy.git /var/www/html/apps/password_policy/"
+ - su www-data -c "php /var/www/html/occ app:enable password_policy"
+ - /usr/local/bin/run.sh
+
+trigger:
+ branch:
+ - master
+ event:
+ - push
+ - pull_request
+---
+kind: pipeline
+type: docker
name: analysis
steps: