-
Notifications
You must be signed in to change notification settings - Fork 3
/
vagga.yaml
79 lines (66 loc) · 1.76 KB
/
vagga.yaml
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
containers:
docs:
setup:
- !Alpine v3.8
- !Repo edge/community
- !Install [alpine-base, py-sphinx, make, vim]
- !Py2Install [sphinx_rtd_theme]
- &bulk !Tar
url: "https://github.com/tailhook/bulk/releases/download/v0.4.12/bulk-v0.4.12.tar.gz"
sha256: 7deeb4895b3909afea46194ef01bafdeb30ff89fc4a7b6497172ba117734040e
path: /
py2:
setup:
- !Alpine v3.8
- !Install [python]
py3:
setup:
- !Alpine v3.8
- !Install [python3]
py3-ubuntu-i386:
setup:
- !UbuntuRelease
codename: xenial
arch: i386
- !Install [python3]
py3lint:
setup:
- !Container py3
- !PipConfig { dependencies: true }
- !Py3Install [flake8, mypy]
commands:
doc: !Command
description: Build documentation
container: docs
run: [make, html]
work-dir: doc
epilog: |
--------------------------------------------------------
Documentation is built under docs/_build/html/index.html
test: !Command
description: Run tests for python2 and python3
prerequisites: [check, _test-py2, _test-py3, _test-py3-32bit]
container: docs
run: "echo All tests are fine"
check: !Command
description: Run linters
container: py3lint
run: |
flake8 cantal
mypy cantal
_bulk: !Command
description: Run `bulk` command (for version bookkeeping)
container: docs
run: [bulk]
_test-py2: !Command
description: Run python2 tests
container: py2
run: [python2, -m, unittest, discover]
_test-py3: !Command
description: Run python3 tests
container: py3
run: [python3, -m, unittest, discover]
_test-py3-32bit: !Command
description: Run python3 32bit tests
container: py3-ubuntu-i386
run: [python3, -m, unittest, discover]