101 строка
2.4 KiB
YAML
101 строка
2.4 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: tests
|
|
|
|
# SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-FileCopyrightText: 2019 Tobias Kaminsky <tobias@kaminsky.me>
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
steps:
|
|
- name: gplay
|
|
image: ghcr.io/nextcloud/continuous-integration-android8:4
|
|
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
|
|
ORG_GRADLE_PROJECT_coverage: ''
|
|
commands:
|
|
- ./gradlew assembleDebug
|
|
- ./gradlew test
|
|
- 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
|
|
---
|
|
kind: pipeline
|
|
name: analysis
|
|
|
|
steps:
|
|
- name: analysis
|
|
image: ghcr.io/nextcloud/continuous-integration-android8:4
|
|
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:
|
|
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
|
|
- export BRANCH=$(scripts/analysis/getBranchName.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST)
|
|
- scripts/analysis/analysis-wrapper.sh $GIT_USERNAME $GIT_TOKEN $BRANCH $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER $DRONE_PULL_REQUEST
|
|
|
|
- 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
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
- pull_request
|
|
---
|
|
kind: signature
|
|
hmac: 89c97c7ee551bee0d6991c56f8673c0cb04478fa87eb9f2dc88d93710fc67f77
|
|
|
|
...
|