-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
50 lines (37 loc) · 945 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
39
40
41
42
43
44
45
46
47
48
49
install:
pip install --upgrade pip && \
pip install -e .
setup-ci:
pip install pre-commit && \
pre-commit install
black:
pre-commit run black -a
interrogate:
pre-commit run interrogate -a
lint:
pre-commit run markdownlint -a
license:
pre-commit run license -a
doctest:
coverage run \
--rcfile='test/coverage.docstring.rc' \
-m pytest \
--doctest-modules modulus/ --ignore-glob=*internal*
pytest:
coverage run \
--rcfile='test/coverage.pytest.rc' \
-m pytest
pytest-internal:
cd test/internal && \
pytest && \
cd ../../
coverage:
coverage combine && \
coverage report --show-missing --omit=*test* --omit=*internal* --fail-under=20 && \
coverage html
container-deploy:
docker build -t modulus-launch:deploy --target deploy -f Dockerfile .
container-ci:
docker build -t modulus-launch:ci --target ci -f Dockerfile .
container-docs:
docker build -t modulus-launch:docs --target docs -f Dockerfile .