forked from cl0ne/cryptopotato-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.woodpecker.yml
118 lines (111 loc) · 2.18 KB
/
.woodpecker.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
pipeline:
lint-shell:
image: sevoid/linter:latest
pull: true
commands:
- ./.ci/lint-shell.sh
group: lint
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
lint-yaml:
image: sevoid/linter:latest
pull: true
commands:
- ./.ci/lint-yaml.sh
group: lint
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
lint-dockerfile:
image: sevoid/linter:latest
pull: true
commands:
- hadolint --no-fail --config ./.ci/hadolint.yaml Dockerfile
group: lint
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
lint-python:
image: sevoid/linter:latest
pull: true
commands:
- sudo pip install -q -r ./.ci/pylint_requirements.txt -e .
- ./.ci/lint_python.py
group: lint
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
test-unittest:
image: python:3-alpine
pull: true
commands:
- apk add -q --no-cache build-base openssl openssl-dev libffi libffi-dev sqlite
- pip install -q -r requirements.txt -e .
- python -m unittest discover -s tests -p "test_*.py"
group: test
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
publish-dev:
image: plugins/docker:17
pull: true
secrets:
- docker_username
- docker_password
repo: sevoid/cryptopotato-bot
group: build
tags:
- dev-${DRONE_COMMIT:0:7}
when:
event:
- push
branch:
- dev-*
- feature-*
- feature/*
publish-release:
image: plugins/docker:17
pull: true
secrets:
- docker_username
- docker_password
repo: sevoid/cryptopotato-bot
group: build
tags:
- latest
- ${DRONE_TAG}
when:
branch:
- master
- release-*
event:
- push
- tag
# vim:set syntax=yaml ts=2 sw=2 et: