Renew Drone CI

This commit is contained in:
arberkatellari
2023-09-01 10:07:44 -04:00
committed by Dan Christian Bogos
parent 47af22c724
commit c04e28cb56
5 changed files with 152 additions and 82 deletions

226
.drone.yml Normal file
View File

@@ -0,0 +1,226 @@
kind: pipeline
type: docker
name: unit
workspace:
path: /go/src/github.com/cgrates/cgrates/
steps:
- name: unit
pull: never
image: cgrates-integration
commands:
- go version
- ./test.sh
- name: notify
pull: never
image: drillster/drone-email
settings:
from.address: cgrates.dronebot@gmail.com
from.name: DroneEmail
host: smtp.gmail.com
username:
from_secret: email_username
password:
from_secret: email_password
subject: >
[{{ build.status }}]
{{ repo.owner }}/{{ repo.name }}
({{ commit.branch }})
body: >
Build number: # {{ build.number }}
Build link: {{ build.link }}
Build started: {{ build.started }}
Build ended: {{ build.finished }}
Commit author: {{ commit.author.name }}
Commit message: {{ commit.message }}
Commit branch: {{ commit.branch }}
Commit link: {{ commit.link }}
recipients_file: recipients
recipients_only: true
when:
status: failure
---
kind: pipeline
type: docker
name: integration-internal
workspace:
path: /go/src/github.com/cgrates/cgrates/
steps:
- name: integration-internal
pull: never
image: cgrates-integration
commands:
- data/docker/integration/docker-entrypoint.sh
- ./integration_test.sh -dbtype=*internal
failure: ignore
- name: notify
pull: never
image: drillster/drone-email
settings:
from.address: cgrates.dronebot@gmail.com
from.name: DroneEmail
host: smtp.gmail.com
username:
from_secret: email_username
password:
from_secret: email_password
subject: >
[{{ build.status }}]
{{ repo.owner }}/{{ repo.name }}
({{ commit.branch }})
body: >
Build number: # {{ build.number }}
Build link: {{ build.link }}
Build started: {{ build.started }}
Build ended: {{ build.finished }}
Commit author: {{ commit.author.name }}
Commit message: {{ commit.message }}
Commit branch: {{ commit.branch }}
Commit link: {{ commit.link }}
recipients_file: recipients
recipients_only: true
when:
status: failure
---
kind: pipeline
type: docker
name: integration-mysql
workspace:
path: /go/src/github.com/cgrates/cgrates/
steps:
- name: integration-mysql
pull: never
image: cgrates-integration
commands:
- data/docker/integration/docker-entrypoint.sh
- ./integration_test.sh -dbtype=*mysql
failure: ignore
- name: notify
pull: never
image: drillster/drone-email
settings:
from.address: cgrates.dronebot@gmail.com
from.name: DroneEmail
host: smtp.gmail.com
username:
from_secret: email_username
password:
from_secret: email_password
subject: >
[{{ build.status }}]
{{ repo.owner }}/{{ repo.name }}
({{ commit.branch }})
body: >
Build number: # {{ build.number }}
Build link: {{ build.link }}
Build started: {{ build.started }}
Build ended: {{ build.finished }}
Commit author: {{ commit.author.name }}
Commit message: {{ commit.message }}
Commit branch: {{ commit.branch }}
Commit link: {{ commit.link }}
recipients_file: recipients
recipients_only: true
when:
status: failure
---
kind: pipeline
type: docker
name: integration-mongo
workspace:
path: /go/src/github.com/cgrates/cgrates/
steps:
- name: integration-mongo
pull: never
image: cgrates-integration
commands:
- data/docker/integration/docker-entrypoint.sh
- ./integration_test.sh -dbtype=*mongo
failure: ignore
- name: notify
pull: never
image: drillster/drone-email
settings:
from.address: cgrates.dronebot@gmail.com
from.name: DroneEmail
host: smtp.gmail.com
username:
from_secret: email_username
password:
from_secret: email_password
subject: >
[{{ build.status }}]
{{ repo.owner }}/{{ repo.name }}
({{ commit.branch }})
body: >
Build number: # {{ build.number }}
Build link: {{ build.link }}
Build started: {{ build.started }}
Build ended: {{ build.finished }}
Commit author: {{ commit.author.name }}
Commit message: {{ commit.message }}
Commit branch: {{ commit.branch }}
Commit link: {{ commit.link }}
recipients_file: recipients
recipients_only: true
when:
status: failure
---
kind: pipeline
type: docker
name: integration-postgres
workspace:
path: /go/src/github.com/cgrates/cgrates/
steps:
- name: integration-postgres
pull: never
image: cgrates-integration
commands:
- data/docker/integration/docker-entrypoint.sh
- ./integration_test.sh -dbtype=*postgres
failure: ignore
- name: notify
pull: never
image: drillster/drone-email
settings:
from.address: cgrates.dronebot@gmail.com
from.name: DroneEmail
host: smtp.gmail.com
username:
from_secret: email_username
password:
from_secret: email_password
subject: >
[{{ build.status }}]
{{ repo.owner }}/{{ repo.name }}
({{ commit.branch }})
body: >
Build number: # {{ build.number }}
Build link: {{ build.link }}
Build started: {{ build.started }}
Build ended: {{ build.finished }}
Commit author: {{ commit.author.name }}
Commit message: {{ commit.message }}
Commit branch: {{ commit.branch }}
Commit link: {{ commit.link }}
recipients_file: recipients
recipients_only: true
when:
status: failure