-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (38 loc) · 1.42 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
.PHONY: help prepare-dev test test-disable-gpu doc serve-doc
.DEFAULT: help
help:
@echo "make prepare-dev"
@echo " create and prepare development environment, use only once"
@echo "make test"
@echo " run tests and linting on py36, py37, py38"
@echo "make check_all"
@echo " check all files using pre-commit tool"
@echo "make updatetools"
@echo " updatetools pre-commit tool"
@echo "make test-disable-gpu"
@echo " run test with gpu disabled"
@echo "make serve-doc"
@echo " run documentation server for development"
@echo "make doc"
@echo " build mkdocs documentation"
prepare-dev:
python3 -m pip install virtualenv
python3 -m venv lipdp_dev_env
. lipdp_dev_env/bin/activate && pip install --upgrade pip
. lipdp_dev_env/bin/activate && pip install -e .[dev]
. lipdp_dev_env/bin/activate && pre-commit install
. lipdp_dev_env/bin/activate && pre-commit install-hooks
. lipdp_dev_env/bin/activate && pre-commit install --hook-type commit-msg
test:
. lipdp_dev_env/bin/activate && tox
check_all:
. lipdp_dev_env/bin/activate && pre-commit run --all-files
updatetools:
. lipdp_dev_env/bin/activate && pre-commit autoupdate
test-disable-gpu:
. lipdp_dev_env/bin/activate && CUDA_VISIBLE_DEVICES=-1 tox
doc:
. lipdp_dev_env/bin/activate && mkdocs build
. lipdp_dev_env/bin/activate && mkdocs gh-deploy
serve-doc:
. lipdp_dev_env/bin/activate && CUDA_VISIBLE_DEVICES=-1 mkdocs serve