-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
85 lines (76 loc) · 1.84 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
---
kind: pipeline
type: docker
name: default
steps:
- name: build_yarn
image: node
volumes:
- name: cache_yarn
path: /drone/src/frontend/node_modules
commands:
- cd frontend
- yarn install
- name: build_poetry
image: python
volumes:
- name: cache_poetry
path: /root/.cache/pypoetry
- name: poetry_bin
path: /root/.poetry/
commands:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
- /root/.poetry/bin/poetry install
- name: Typescript Linting
image: node
volumes:
- name: cache_yarn
path: /drone/src/frontend/node_modules
commands:
- cd frontend
- yarn eslint . --ext .js,.jsx,.ts,.tsx
- name: Python Linting
image: python
volumes:
- name: cache_poetry
path: /root/.cache/pypoetry
- name: poetry_bin
path: /root/.poetry/
commands:
- /root/.poetry/bin/poetry run flake8 vosekast_control test
- name: Python Testing
image: python
volumes:
- name: cache_poetry
path: /root/.cache/pypoetry
- name: poetry_bin
path: /root/.poetry/
commands:
- /root/.poetry/bin/poetry run pytest test
- name: make release
image: python
volumes:
- name: cache_poetry
path: /root/.cache/pypoetry
- name: poetry_bin
path: /root/.poetry/
environment:
GH_TOKEN:
from_secret: GITHUB_TOKEN
commands:
- mkdir dist
- /root/.poetry/bin/poetry run semantic-release publish
when:
branch:
include:
- master
volumes:
- name: cache_yarn
host:
path: /tmp/drone/cache/node_modules
- name: cache_poetry
host:
path: /tmp/drone/cache/pypoetry
- name: poetry_bin
host:
path: /tmp/drone/cache/poetry_bin