-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (29 loc) · 1.02 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
CERIT_DOCKER_REPOSITORY_NAME=ivetastrnadova
NEW_DOCKER_TAG=v1.0
black:
poetry run black src
pylint:
poetry run pylint src
pylint-no-todo:
poetry run pylint src --disable "fixme"
pylint-tests:
poetry run pylint tests --disable "missing-function-docstring"
flake8:
poetry run flake8 src
docker-tests:
docker-compose -f tests/docker-compose.yaml build
docker-compose -f tests/docker-compose.yaml up
docker:
docker-compose build
docker-compose up --force-recreate --remove-orphans
pytest:
poetry run pytest
pytest-coverage:
poetry run pytest --cov=src
docker-build-tag-push:
docker build -t cerit.io/${CERIT_DOCKER_REPOSITORY_NAME}/pdb-data-cruncher:latest \
-t cerit.io/${CERIT_DOCKER_REPOSITORY_NAME}/pdb-data-cruncher:${NEW_DOCKER_TAG} .
docker push cerit.io/${CERIT_DOCKER_REPOSITORY_NAME}/pdb-data-cruncher:latest
docker push cerit.io/${CERIT_DOCKER_REPOSITORY_NAME}/pdb-data-cruncher:${NEW_DOCKER_TAG}
check: pylint flake8 pytest
.PHONY: pylint pylint_tests pylint-no-todo pytest test_run check flake8 docker-tests