forked from petercorke/bdsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 867 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
.FORCE:
BLUE=\033[0;34m
BLACK=\033[0;30m
help:
@echo "$(BLUE) make test - run all unit tests"
@echo " make coverage - run unit tests and coverage report"
@echo " make docs - build Sphinx documentation"
@echo " make docupdate - upload Sphinx documentation to GitHub pages"
@echo " make dist - build dist files"
@echo " make upload - upload to PyPI"
@echo " make clean - remove dist and docs build files"
@echo " make help - this message$(BLACK)"
test:
pytest
coverage:
pytest --cov=bdsim
coverage report
docs: .FORCE
(cd docs; make html)
open docs/build/html/index.html
docupdate: docs
cp -r docsrc/build/html/. docs
git add docs
git commit -m "rebuilt docs"
git push origin master
dist: .FORCE
#$(MAKE) test
python -m build
upload: .FORCE
twine upload dist/*
clean: .FORCE
# (cd docsrc; make clean)
-rm -r *.egg-info
-rm -r dist build