2019-04-15 01:54:27 +03:00
|
|
|
kind: pipeline
|
2021-12-07 16:06:17 +03:00
|
|
|
type: docker
|
2019-04-15 01:54:27 +03:00
|
|
|
name: generic
|
|
|
|
|
|
|
|
steps:
|
2021-12-07 16:06:17 +03:00
|
|
|
- name: generic
|
2022-05-18 17:40:29 +03:00
|
|
|
image: ghcr.io/nextcloud/continuous-integration-android8:2
|
2021-12-07 16:06:17 +03:00
|
|
|
commands:
|
|
|
|
- ./gradlew --console=plain assembleGeneric
|
2019-04-15 01:54:27 +03:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
2022-06-24 15:19:46 +03:00
|
|
|
- stable-*
|
2019-04-15 01:54:27 +03:00
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-12-07 16:06:17 +03:00
|
|
|
type: docker
|
2019-04-15 01:54:27 +03:00
|
|
|
name: gplay
|
|
|
|
|
|
|
|
steps:
|
2021-12-07 16:06:17 +03:00
|
|
|
- name: gplay
|
2022-05-18 17:40:29 +03:00
|
|
|
image: ghcr.io/nextcloud/continuous-integration-android8:2
|
2021-12-07 16:06:17 +03:00
|
|
|
commands:
|
|
|
|
- ./gradlew --console=plain assembleGplay
|
2019-04-15 01:54:27 +03:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
2022-06-24 15:19:46 +03:00
|
|
|
- stable-*
|
2019-04-15 01:54:27 +03:00
|
|
|
event:
|
2021-12-07 16:06:17 +03:00
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: tests
|
|
|
|
|
|
|
|
steps:
|
2021-12-08 14:47:51 +03:00
|
|
|
- name: all
|
2022-05-18 17:40:29 +03:00
|
|
|
image: ghcr.io/nextcloud/continuous-integration-android8:2
|
2021-12-07 16:06:17 +03:00
|
|
|
privileged: true
|
|
|
|
commands:
|
2022-05-19 11:38:06 +03:00
|
|
|
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
|
2021-12-07 16:06:17 +03:00
|
|
|
- scripts/wait_for_emulator.sh
|
2021-12-08 14:47:51 +03:00
|
|
|
- ./gradlew --console=plain testGplayDebugUnitTest connectedGplayDebugAndroidTest
|
2021-12-07 16:06:17 +03:00
|
|
|
|
2021-12-21 12:47:54 +03:00
|
|
|
services:
|
|
|
|
- name: server
|
|
|
|
image: nextcloudci/server:server-17
|
|
|
|
environment:
|
|
|
|
EVAL: "true"
|
|
|
|
commands:
|
|
|
|
- BRANCH='stable23' /usr/local/bin/initnc.sh
|
|
|
|
- echo 127.0.0.1 server >> /etc/hosts
|
|
|
|
- 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 "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 stable23 https://github.com/nextcloud/spreed.git /var/www/html/apps/spreed/"
|
|
|
|
- su www-data -c "php /var/www/html/occ app:enable spreed"
|
|
|
|
- /usr/local/bin/run.sh
|
2021-12-07 16:06:17 +03:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
2022-06-24 15:19:46 +03:00
|
|
|
- stable-*
|
2021-12-07 16:06:17 +03:00
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
2019-04-15 01:54:27 +03:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-12-07 16:06:17 +03:00
|
|
|
type: docker
|
2019-04-15 01:54:27 +03:00
|
|
|
name: analysis
|
|
|
|
|
|
|
|
steps:
|
2021-12-07 16:06:17 +03:00
|
|
|
- name: analysis
|
2022-05-18 17:40:29 +03:00
|
|
|
image: ghcr.io/nextcloud/continuous-integration-android8:2
|
2021-12-07 16:06:17 +03:00
|
|
|
environment:
|
|
|
|
GIT_USERNAME:
|
|
|
|
from_secret: GIT_USERNAME
|
|
|
|
GIT_TOKEN:
|
|
|
|
from_secret: GIT_TOKEN
|
|
|
|
LOG_USERNAME:
|
|
|
|
from_secret: LOG_USERNAME
|
|
|
|
LOG_PASSWORD:
|
|
|
|
from_secret: LOG_PASSWORD
|
|
|
|
commands:
|
2022-06-24 14:57:32 +03:00
|
|
|
- export BRANCH=$(git branch | grep '*' | cut -d' ' -f2)
|
2021-12-07 16:06:17 +03:00
|
|
|
- scripts/analysis/analysis-wrapper.sh $GIT_USERNAME $GIT_TOKEN $BRANCH $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER $DRONE_PULL_REQUEST
|
2019-04-15 01:54:27 +03:00
|
|
|
|
2021-12-07 16:06:17 +03:00
|
|
|
- name: notify
|
|
|
|
image: drillster/drone-email
|
|
|
|
host: $EMAIL_HOST
|
|
|
|
port: 587
|
|
|
|
username: $EMAIL_USERNAME
|
|
|
|
password: $EMAIL_PASSWORD
|
|
|
|
from: nextcloud-drone@kaminsky.me
|
|
|
|
skip_verify: true
|
|
|
|
recipients_only: true
|
|
|
|
recipients: [ $EMAIL_RECIPIENTS ]
|
|
|
|
environment:
|
|
|
|
EMAIL_USERNAME:
|
|
|
|
from_secret: EMAIL_USERNAME
|
|
|
|
EMAIL_PASSWORD:
|
|
|
|
from_secret: EMAIL_PASSWORD
|
|
|
|
EMAIL_RECIPIENTS:
|
|
|
|
from_secret: EMAIL_RECIPIENTS
|
|
|
|
EMAIL_HOST:
|
|
|
|
from_secret: EMAIL_HOST
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
branch:
|
|
|
|
- master
|
2019-04-15 01:54:27 +03:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
2022-06-24 15:19:46 +03:00
|
|
|
- stable-*
|
2019-04-15 01:54:27 +03:00
|
|
|
event:
|
|
|
|
- push
|
2021-11-05 13:17:18 +03:00
|
|
|
- pull_request
|