|
.DEFAULT_GOAL := help
|
|
.PHONY: test system-deps dev-deps deps style lint install help docs
|
|
|
|
help:
|
|
@grep -E '^[a-zA-Z_-]+:.*?
|
|
|
|
target_dirs := tests TTS notebooks recipes
|
|
|
|
test_all:
|
|
nose2 --with-coverage --coverage TTS tests
|
|
./run_bash_tests.sh
|
|
|
|
test:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests
|
|
|
|
test_vocoder:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.vocoder_tests
|
|
|
|
test_tts:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.tts_tests
|
|
|
|
test_tts2:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.tts_tests2
|
|
|
|
test_xtts:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.xtts_tests
|
|
|
|
test_aux:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.aux_tests
|
|
./run_bash_tests.sh
|
|
|
|
test_zoo:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.zoo_tests
|
|
|
|
inference_tests:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.inference_tests
|
|
|
|
data_tests:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.data_tests
|
|
|
|
test_text:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests.text_tests
|
|
|
|
test_failed:
|
|
nose2 -F -v -B --with-coverage --coverage TTS tests
|
|
|
|
style:
|
|
black ${target_dirs}
|
|
isort ${target_dirs}
|
|
|
|
lint:
|
|
pylint ${target_dirs}
|
|
black ${target_dirs} --check
|
|
isort ${target_dirs} --check-only
|
|
|
|
system-deps:
|
|
sudo apt-get install -y libsndfile1-dev
|
|
|
|
dev-deps:
|
|
pip install -r requirements.dev.txt
|
|
|
|
doc-deps:
|
|
pip install -r docs/requirements.txt
|
|
|
|
build-docs:
|
|
cd docs && make clean && make build
|
|
|
|
hub-deps:
|
|
pip install -r requirements.hub.txt
|
|
|
|
deps:
|
|
pip install -r requirements.txt
|
|
|
|
install:
|
|
pip install -e .[all]
|
|
|
|
docs:
|
|
$(MAKE) -C docs clean && $(MAKE) -C docs html
|
|
|