TTS/Makefile

73 lines
2.0 KiB
Makefile
Raw Normal View History

2021-04-12 09:47:39 +00:00
.DEFAULT_GOAL := help
2021-09-12 15:32:53 +00:00
.PHONY: test system-deps dev-deps deps style lint install help docs
2021-04-12 09:47:39 +00:00
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
2021-08-07 21:22:52 +00:00
target_dirs := tests TTS notebooks recipes
2021-04-12 09:47:39 +00:00
2021-06-01 08:48:13 +00:00
test_all: ## run tests and don't stop on an error.
nose2 --with-coverage --coverage TTS tests
2021-06-01 08:48:13 +00:00
./run_bash_tests.sh
2021-04-12 09:47:39 +00:00
test: ## run tests.
nose2 -F -v -B --with-coverage --coverage TTS tests
2021-10-21 17:07:41 +00:00
test_vocoder: ## run vocoder tests.
nose2 -F -v -B --with-coverage --coverage TTS tests.vocoder_tests
2021-10-21 17:07:41 +00:00
test_tts: ## run tts tests.
nose2 -F -v -B --with-coverage --coverage TTS tests.tts_tests
2021-10-21 17:07:41 +00:00
test_aux: ## run aux tests.
nose2 -F -v -B --with-coverage --coverage TTS tests.aux_tests
2021-04-12 09:47:39 +00:00
./run_bash_tests.sh
test_zoo: ## run zoo tests.
nose2 -F -v -B --with-coverage --coverage TTS tests.zoo_tests
inference_tests: ## run inference tests.
nose2 -F -v -B --with-coverage --coverage TTS tests.inference_tests
2022-02-22 14:08:38 +00:00
data_tests: ## run data tests.
nose2 -F -v -B --with-coverage --coverage TTS tests.data_tests
2022-02-22 14:08:38 +00:00
test_text: ## run text tests.
nose2 -F -v -B --with-coverage --coverage TTS tests.text_tests
2022-02-22 14:08:38 +00:00
test_failed: ## only run tests failed the last time.
nose2 -F -v -B --with-coverage --coverage TTS tests
2021-04-12 09:47:39 +00:00
style: ## update code style.
black ${target_dirs}
isort ${target_dirs}
lint: ## run pylint linter.
pylint ${target_dirs}
black ${target_dirs} --check
isort ${target_dirs} --check-only
2021-04-12 09:47:39 +00:00
2021-06-27 18:55:20 +00:00
system-deps: ## install linux system deps
sudo apt-get install -y libsndfile1-dev
dev-deps: ## install development deps
pip install -r requirements.dev.txt
doc-deps: ## install docs dependencies
pip install -r docs/requirements.txt
2021-07-04 09:09:40 +00:00
build-docs: ## build the docs
cd docs && make clean && make build
2021-06-27 18:55:20 +00:00
hub-deps: ## install deps for torch hub use
pip install -r requirements.hub.txt
deps: ## install 🐸 requirements.
pip install -r requirements.txt
2021-04-12 09:47:39 +00:00
install: ## install 🐸 TTS for development.
pip install -e .[all]
2021-09-12 15:32:53 +00:00
docs: ## build the docs
$(MAKE) -C docs clean && $(MAKE) -C docs html