surtur
f85b60c210
Some checks failed
continuous-integration/drone/push Build is failing
- move back since it only supports publishing artifacts in tags scenario
119 lines
2.4 KiB
YAML
119 lines
2.4 KiB
YAML
---
|
|
kind: pipeline
|
|
name: test-set-default
|
|
|
|
platform:
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: reveal-env
|
|
pull: always
|
|
image: immawanderer/archlinux-rf:latest
|
|
volumes:
|
|
- name: shm
|
|
path: /dev/shm
|
|
commands:
|
|
- uname -r
|
|
- python --version
|
|
- robot --version || echo "rf loves to exit with code $(robot --version 2>&1 >/dev/null; echo $?)"
|
|
- ls -la
|
|
|
|
- name: test000
|
|
pull: if-not-exists
|
|
image: immawanderer/archlinux-rf:latest
|
|
volumes:
|
|
- name: shm
|
|
path: /dev/shm
|
|
commands:
|
|
- robot test000.robot
|
|
when:
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
- name: report000
|
|
pull: if-not-exists
|
|
image: immawanderer/archlinux-rf:latest
|
|
volumes:
|
|
- name: shm
|
|
path: /dev/shm
|
|
commands:
|
|
- cat log.html
|
|
- cat output.xml
|
|
- cat report.html
|
|
when:
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
- name: test001
|
|
pull: if-not-exists
|
|
image: immawanderer/archlinux-rf:latest
|
|
volumes:
|
|
- name: shm
|
|
path: /dev/shm
|
|
commands:
|
|
- robot test001.robot
|
|
when:
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
- name: report001
|
|
pull: if-not-exists
|
|
image: immawanderer/archlinux-rf:latest
|
|
volumes:
|
|
- name: shm
|
|
path: /dev/shm
|
|
commands:
|
|
- cat log.html
|
|
- cat output.xml
|
|
- cat report.html
|
|
when:
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
volumes:
|
|
- name: shm
|
|
host:
|
|
path: /dev/shm
|
|
|
|
|
|
---
|
|
kind: pipeline
|
|
name: notifications
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
- dev
|
|
- "release/*"
|
|
event:
|
|
- push
|
|
- tag
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
depends_on:
|
|
- test-set-default
|
|
|
|
steps:
|
|
- name: discord
|
|
pull: always
|
|
image: appleboy/drone-discord:1.2.4
|
|
settings:
|
|
message: "{{#success build.status}} ✅ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` succeeded.\nevent: **`{{build.event}}`**\ncommit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`\n```{{commit.message}}``` {{else}} ❌ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed.\nevent: **`${DRONE_BUILD_EVENT}`**\ncommit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`\n```{{commit.message}}``` {{/success}}\n"
|
|
webhook_id:
|
|
from_secret: discord_webhook_id
|
|
webhook_token:
|
|
from_secret: discord_webhook_token
|