forked from art049/fastapi-odmantic-realworld-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (26 loc) · 728 Bytes
/
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
all: build ci publish
build: docker-build
ci: lint format unit-tests coverage functional-tests ci-clean
publish: docker-publish
lint:
bash scripts/lint.sh
format:
bash scripts/format.sh
pre-commit:
bash scripts/pre-commit.sh
unit-tests:
bash scripts/unit-tests.sh
coverage:
bash scripts/coverage.sh
functional-tests:
bash scripts/functional-tests.sh
ci-clean:
rm -rf .pytest_cache
rm -rf .mypy_cache
docker-build: docker-build-prod docker-build-dev
docker-build-prod:
docker build -t webofmars/cicdparadox:standard-latest --target=prod .
docker-build-dev:
docker build -t webofmars/cicdparadox:standard-develop --target=dev .
docker-publish: docker-build
docker push webofmars/cicdparadox:standard-latest