-
Notifications
You must be signed in to change notification settings - Fork 0
/
vagga.yaml
52 lines (48 loc) · 1.1 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
minimum-vagga: v0.7.0
containers:
pip-freeze:
setup:
- !Alpine v3.4
- !Py3Install
- pip
- 'Pyramid >=1.8, <1.9'
- 'gunicorn >=19.6, <20.0'
- !Sh |
echo "-r base-requirements.txt" > requirements.txt
pip freeze >> requirements.txt
Pyramid:
setup:
- !Alpine v3.5
- !PipConfig
dependencies: true
- !Py3Requirements requirements.txt
test:
setup:
- !Ubuntu trusty
- !PipConfig
dependencies: true
- !Py3Requirements test-requirements.txt
- !Py3Install [pytest]
lint:
setup:
- !Ubuntu trusty
- !PipConfig
dependencies: true
- !Install [git]
- !Depends .pre-commit-config.yaml
- !Py3Requirements test-requirements.txt
- !Py3Install [setuptools]
- !Sh HOME=/root pre-commit install-hooks
commands:
lint: !Command
description: Run linters
container: lint
run: pre-commit run --all-files
test: !Command
description: Run tests
container: test
run: pytest main/tests.py
run: !Command
description: Run server
container: Pyramid
run: python3 main/app.py