forked from Maximilien-R/django-rest-framework-recaptcha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (73 loc) · 2.4 KB
/
docker-compose.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
version: "3.6"
services:
package: &package
build: .
package-volumes: &package-volumes
<<: *package
volumes:
- .:/usr/src/app
dev-package: &dev-package
build:
context: .
args:
- target=.[development]
dev-package-volumes: &dev-package-volumes
<<: *dev-package
volumes:
- .:/usr/src/app
format-imports:
<<: *dev-package-volumes
command: isort -rc rest_framework_recaptcha/.
check-format-imports:
<<: *dev-package
command: isort --check-only -rc rest_framework_recaptcha/.
format:
<<: *dev-package-volumes
command: black -l 79 --py36 rest_framework_recaptcha
check-format:
<<: *dev-package
command: black -l 79 --py36 --check rest_framework_recaptcha
style:
<<: *dev-package
command: flake8 rest_framework_recaptcha
complexity:
<<: *dev-package
command: xenon --max-absolute B --max-modules A --max-average A rest_framework_recaptcha
test-unit:
<<: *dev-package
command: py.test -s tests/unit -vv --cov . --cov-config .coveragerc --cov-report term-missing --cov-report xml:reports/coverage.xml --cov-report html:reports/coverage.html
volumes:
- ./reports:/usr/src/app/reports
test-all:
<<: *dev-package
command: tox
security-sast:
<<: *dev-package
command: bandit -r rest_framework_recaptcha/.
security-dependency-scan:
<<: *dev-package
command: safety check
build-docs:
<<: *dev-package-volumes
command: /bin/bash -c "sphinx-apidoc -o docs/ rest_framework_recaptcha && make -C docs clean && make -C docs html"
bumpversion-package:
<<: *dev-package-volumes
command: [ "bumpversion", "${VERSION_PART-patch}" ]
build-package:
<<: *package-volumes
command: python setup.py sdist bdist_wheel
publish-test-package:
<<: *dev-package-volumes
command: twine upload --repository-url https://test.pypi.org/legacy/ dist/*
publish-package:
<<: *dev-package-volumes
command: twine upload dist/*
generate-translations:
<<: *package-volumes
command: /bin/bash -c "cd rest_framework_recaptcha && django-admin makemessages --locale=${LOCALE}"
update-translations:
<<: *package-volumes
command: /bin/bash -c "cd rest_framework_recaptcha && django-admin makemessages --all"
compile-translations:
<<: *package-volumes
command: /bin/bash -c "cd rest_framework_recaptcha && django-admin compilemessages"