-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
52 lines (48 loc) · 1.52 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
pipeline:
# test:
# image: python:3.6-slim
# secrets:
# - aws_access_key_id
# - aws_secret_access_key
# - cmk
# - region_name
# commands:
# - pip install -r requirements.txt
# - pytest -v --cov=kms_client tests/
# when:
# branch: master
# event: [ push, pull_request ]
pypi_publish:
secrets:
- username
- password
image: gjtempleton/drone-pypi
repository: http://pypi.intelligems.eu/
distributions:
- sdist
setupfile: setup.py
when:
branch: master
event: push
slack:
image: plugins/slack
secrets:
- slack_webhook
webhook: ${SLACK_WEBHOOK}
channel: ci-messages
username: drone
template: >
{{#success build.status}}
*{{build.status}}* {{repo.name}} <{{build.link}}|{{build.number}}>. Ένα QA μόνος μου είμαι ο πούστης.
Author: {{build.author}}
Commit: <${DRONE_COMMIT_LINK}|{{repo.owner}}/{{repo.name}}#${DRONE_COMMIT:0:8}> `${DRONE_COMMIT_MESSAGE}`
Trigger event: {{build.event}} ({{build.branch}})
{{else}}
*{{build.status}}* {{repo.name}} <{{build.link}}|{{build.number}}>. Δε φταίει ο κώδικας, τα τεστ φταίνε.
Author: {{build.author}}
Commit: <${DRONE_COMMIT_LINK}|{{repo.owner}}/{{repo.name}}#${DRONE_COMMIT:0:8}> `${DRONE_COMMIT_MESSAGE}`
Trigger event: {{build.event}} ({{build.branch}})
{{/success}}
when:
status: [success, failure]
branches: [master]