-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
47 lines (32 loc) · 1.16 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
# these will speed up builds, for docker-compose >= 1.25
export COMPOSE_DOCKER_CLI_BUILD=1
export COMPOSE_PROJECT_NAME=cosmicpython
export DOCKER_BUILDKIT=1
all: down build up test
build:
docker-compose build
up:
docker-compose up -d
down:
docker-compose down
logs:
docker-compose logs --tail=100
test: up test-e2e test-integration test-unit
test-coverage: up coverage
test-e2e:
docker-compose run --rm --no-deps --entrypoint=pytest app /tests/e2e -vv -rs
test-integration:
docker-compose run --rm --no-deps --entrypoint=pytest app /tests/integration -v -rs
test-unit:
docker-compose run --rm --no-deps --entrypoint=pytest app /tests/unit -v -rs
test-smoke:
docker-compose run --rm --no-deps --entrypoint=pytest app /tests -vv -rs -m smoke
coverage:
docker-compose run --rm --no-deps --entrypoint=pytest app /tests -q -rs --cov=allocation --cov-report xml:coverage.xml
check-black:
black --line-length 80 --diff --check .
check-isort:
isort . --check --diff
check-flake8:
flake8 $(find * -name '*.py') --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 $(find * -name '*.py') --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics