forked from yezz123/authx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (47 loc) · 1.09 KB
/
Makefile
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
help:
@echo "Targets:"
@echo " make test"
@echo " make start"
@echo " make down"
@echo " make pull"
@echo " make build"
@echo " make lint"
@echo " make clean"
@echo " make clean-test"
@echo " make bumpversion-major"
@echo " make bumpversion-minor"
@echo " make bumpversion-patch"
@echo " make mkdocs"
@echo " make gh-deploy"
test:
docker-compose run --rm authx pytest --cov=AuthX/ --cov-report=html
start:
docker-compose up -d
down:
docker-compose down
pull:
docker-compose pull
build:
docker-compose build
lint:
docker-compose run --rm authx pre-commit run --all-files
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test:
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
rm -fr .pytest_cache
bumpversion-major:
bumpversion major --allow-dirty
bumpversion-minor:
bumpversion minor
bumpversion-patch:
bumpversion patch
mkdocs:
docker-compose run --rm authx mkdocs serve --livereload
gh-deploy:
mkdocs gh-deploy --force