forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
53 lines (47 loc) · 1.11 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
build:
unit_tests:
image: python:2.7
commands:
- pip install tox
- tox -e py27
# pypy_unit_tests:
# # just enough variation to make a matrix not viable
# image: pypy:2-5.8.0-slim
# commands:
# - pip install tox
# - tox -e pypy
# when:
# event: push
# branch: master
documentation:
image: python:2.7
commands:
- git config --global user.email "cibot@cloud-custodian.io"
- git config --global user.name "Custodian CI"
- pip install tox
- tox -e docs
- 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
notify:
gitter:
webhook: "https://webhooks.gitter.im/e/0bbc88699fe6e59c8993"
when:
repo: capitalone/cloud-custodian
cache:
mount:
- /root/.cache/pip