-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
57 lines (52 loc) · 1.13 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
53
54
55
56
57
branches:
- master
- release
build:
image: python:2.7
commands:
# dependencies
- 'make init.test'
# run tests and check coverage
- 'make coverage'
# build release
- 'python setup.py versioning'
- 'git config --global user.email dev@aplazame.comº'
- 'git config --global user.name "drone"'
- 'git commit -m "update release version" aplazame_sdk/__init__.py'
environment:
- COVERALLS_REPO_TOKEN=$$COVERALLS_REPO_TOKEN
deploy:
git_push:
remote: git@github.com:aplazame/aplazame-sdk.git
branch: master
force: false
when:
branch: release
pypi:
username: $$PYPI_USERNAME
password: $$PYPI_PASSWORD
distributions:
- sdist
- bdist_wheel
when:
branch: release
notify:
slack:
webhook_url: $$SLACK_WEBHOOK_URL
username: 'drone'
channel: 'developers'
when:
success: false
failure: true
change: true
email:
from: $$EMAIL_FROM
host: $$EMAIL_HOST
username: $$EMAIL_USERNAME
password: $$EMAIL_PASS
recipients:
- dev@aplazame.com
when:
success: false
failure: true
change: true