mirror of https://github.com/coqui-ai/TTS.git
73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
.DEFAULT_GOAL := help
|
|
.PHONY: test system-deps dev-deps style lint install help docs
|
|
|
|
help:
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
|
|
|
target_dirs := tests TTS notebooks recipes
|
|
|
|
test_all: ## run tests and don't stop on an error.
|
|
nose2 --with-coverage --coverage TTS tests
|
|
./run_bash_tests.sh
|
|
|
|
test: ## run tests.
|
|
coverage run -m nose2 -F -v -B tests
|
|
|
|
test_vocoder: ## run vocoder tests.
|
|
coverage run -m nose2 -F -v -B tests.vocoder_tests
|
|
|
|
test_tts: ## run tts tests.
|
|
coverage run -m nose2 -F -v -B tests.tts_tests
|
|
|
|
test_tts2: ## run tts tests.
|
|
coverage run -m nose2 -F -v -B tests.tts_tests2
|
|
|
|
test_xtts:
|
|
coverage run -m nose2 -F -v -B tests.xtts_tests
|
|
|
|
test_aux: ## run aux tests.
|
|
coverage run -m nose2 -F -v -B tests.aux_tests
|
|
./run_bash_tests.sh
|
|
|
|
test_zoo0: ## run zoo tests.
|
|
coverage run -m nose2 -F -v -B tests.zoo_tests.test_models.test_models_offset_0_step_3 \
|
|
tests.zoo_tests.test_models.test_voice_conversion
|
|
test_zoo1: ## run zoo tests.
|
|
coverage run -m nose2 -F -v -B tests.zoo_tests.test_models.test_models_offset_1_step_3
|
|
test_zoo2: ## run zoo tests.
|
|
coverage run -m nose2 -F -v -B tests.zoo_tests.test_models.test_models_offset_2_step_3
|
|
|
|
inference_tests: ## run inference tests.
|
|
coverage run -m nose2 -F -v -B tests.inference_tests
|
|
|
|
data_tests: ## run data tests.
|
|
coverage run -m nose2 -F -v -B tests.data_tests
|
|
|
|
test_text: ## run text tests.
|
|
coverage run -m nose2 -F -v -B tests.text_tests
|
|
|
|
test_failed: ## only run tests failed the last time.
|
|
coverage run -m nose2 -F -v -B tests
|
|
|
|
style: ## update code style.
|
|
black ${target_dirs}
|
|
|
|
lint: ## run linters.
|
|
ruff check ${target_dirs}
|
|
black ${target_dirs} --check
|
|
|
|
system-deps: ## install linux system deps
|
|
sudo apt-get install -y libsndfile1-dev
|
|
|
|
dev-deps: ## install development deps
|
|
pip install -r requirements.dev.txt
|
|
|
|
build-docs: ## build the docs
|
|
cd docs && make clean && make build
|
|
|
|
install: ## install 🐸 TTS for development.
|
|
pip install -e .[all]
|
|
|
|
docs: ## build the docs
|
|
$(MAKE) -C docs clean && $(MAKE) -C docs html
|