-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
33 lines (27 loc) · 1 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
.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 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 harmonization_venv
. harmonization_venv/activate && pip install -r requirements.txt
. harmonization_venv/activate && pip install -r requirements_dev.txt
test:
. harmonization_venv/bin/activate && tox
test-disable-gpu:
. harmonization_venv/bin/activate && CUDA_VISIBLE_DEVICES=-1 tox
doc:
. harmonization_venv/bin/activate && mkdocs build
. harmonization_venv/bin/activate && mkdocs gh-deploy
serve-doc:
. harmonization_venv/bin/activate && CUDA_VISIBLE_DEVICES=-1 mkdocs serve