forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
94 lines (85 loc) · 2.2 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
build:
unit_tests:
image: python:2-alpine
environment:
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=bar
commands:
- mkdir -p cache
- pip install -r requirements-dev.txt --cache-dir=cache
- pip install coveralls --cache-dir=cache
- python setup.py develop
- nosetests -s -v tests tools/c7n_*
pypy_unit_tests:
# just enough variation to make a matrix not viable
image: pypy:2
environment:
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=bar
commands:
- mkdir -p cache
- pip install -r requirements-dev.txt --cache-dir=cache
- pip install coveralls --cache-dir=cache
- pypy setup.py develop
- nosetests -s -v tests
when:
event: push
branch: master
documentation:
image: python:2-alpine
commands:
- apk update
- apk add git make
- git config --global user.email "[email protected]"
- git config --global user.name "Custodian CI"
- pip install -r requirements-dev.txt --cache-dir=cache
- make sphinx
- git remote update origin --prune
- make ghpages
- git branch
# switch back to master post doc-build
- git checkout master
when:
event: push
branch: master
deploy:
# sphinx documentation build / per documentation build section
git_push:
remote_name: origin
branch: gh-pages
local_branch: gh-pages
when:
event: push
branch: master
publish:
pypi:
repository: https://pypi.python.org/pypi
username: c7nbot
password: $$PYPI_PASS
distributions:
- sdist
when:
event: tag
branch: master
repo: capitalone/cloud-custodian
docker:
username: c7nbot
email: $$HUB_EMAIL
password: $$HUB_PASS
repo: capitalone/cloud-custodian
tag: latest
when:
event: push
branch: master
repo: capitalone/cloud-custodian
notify:
gitter:
webhook: "https://webhooks.gitter.im/e/0bbc88699fe6e59c8993"
when:
repo: capitalone/cloud-custodian
# TODO explore caching the whole venv for speed
cache:
mount:
- cache