This commit is contained in:
81
.drone.yml
81
.drone.yml
@@ -1,3 +1,37 @@
|
||||
pipeline:
|
||||
report-tests:
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||
"text": "[{{ repo.name }}] Code Quality Checks {{ build.status }} :tada:{else}:facefalm:{/success}",
|
||||
"username":"DroneBot"
|
||||
}
|
||||
depends_on:
|
||||
- qa
|
||||
- test
|
||||
when:
|
||||
status: [success, failure]
|
||||
report-pushes:
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||
"text": "[{{ repo.name }}] Build {{ build.status }} :tada:",
|
||||
"username":"DroneBot"
|
||||
}
|
||||
depends_on:
|
||||
- build
|
||||
when:
|
||||
status: [success, failure]
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: qa
|
||||
@@ -21,21 +55,32 @@ steps:
|
||||
commands:
|
||||
- yarn lint
|
||||
|
||||
- name: send-test-results
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||
"text": "[{{ repo.name }}] Code Quality Checks {{ build.status }} :tada:",
|
||||
"username":"DroneBot"
|
||||
}
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test
|
||||
|
||||
workspace:
|
||||
path: /drone/grow
|
||||
|
||||
steps:
|
||||
- name: yarn install
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn install
|
||||
|
||||
- name: yarn test
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn test
|
||||
|
||||
depends_on:
|
||||
- qa
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
@@ -50,17 +95,9 @@ steps:
|
||||
commands:
|
||||
- yarn build
|
||||
|
||||
- name: send-build-results
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||
"text": "[{{ repo.name }}] Build {{ build.status }} :tada:",
|
||||
"username":"DroneBot"
|
||||
}
|
||||
depends_on:
|
||||
-qa
|
||||
-test
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
|
||||
Reference in New Issue
Block a user