mirror of https://github.com/coqui-ai/TTS.git
22 lines
554 B
Bash
Executable File
22 lines
554 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
git remote set-branches --add origin $TRAVIS_BRANCH
|
|
git fetch
|
|
|
|
if [[ ( "$TRAVIS_PULL_REQUEST" != "false" ) && ( "$TEST_SUITE" == "lint" ) ]]; then
|
|
# Run cardboardlinter, in case of pull requests
|
|
cardboardlinter --refspec origin/$TRAVIS_BRANCH -n auto
|
|
fi
|
|
|
|
if [[ "$TEST_SUITE" == "unittest" ]]; then
|
|
# Run tests on all pushes
|
|
pushd tts_namespace
|
|
nosetests speaker_encoder.tests --nocapture
|
|
nosetests vocoder.tests --nocapture
|
|
nosetests tests --nocapture
|
|
popd
|
|
# Test server package
|
|
./tests/test_server_package.sh
|
|
fi
|