Back in time...
This commit is contained in:
100
.drone.yml
100
.drone.yml
@@ -1,6 +1,6 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: qa
|
name: test
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
path: /drone/grow
|
path: /drone/grow
|
||||||
@@ -21,31 +21,27 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- yarn lint
|
- yarn lint
|
||||||
|
|
||||||
trigger:
|
- name: test
|
||||||
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
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- yarn test
|
- yarn test
|
||||||
|
|
||||||
depends_on:
|
- name: send-test-results
|
||||||
- qa
|
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: [success, failure]
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@@ -61,52 +57,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- yarn build
|
- yarn build
|
||||||
|
|
||||||
depends_on:
|
- name: send-build-results
|
||||||
-qa
|
|
||||||
-test
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: report-tests
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /drone/grow
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Report status
|
|
||||||
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"
|
|
||||||
}
|
|
||||||
depends_on:
|
|
||||||
- qa
|
|
||||||
- test
|
|
||||||
when:
|
|
||||||
status: [success, failure]
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: report-pushes
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /drone/grow
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Report status
|
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
||||||
@@ -117,7 +68,14 @@ steps:
|
|||||||
"text": "[{{ repo.name }}] Build {{ build.status }} :tada:",
|
"text": "[{{ repo.name }}] Build {{ build.status }} :tada:",
|
||||||
"username":"DroneBot"
|
"username":"DroneBot"
|
||||||
}
|
}
|
||||||
|
trigger:
|
||||||
|
event: [success, failure]
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
-test
|
||||||
when:
|
|
||||||
status: [success, failure]
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|||||||
Reference in New Issue
Block a user