TTS/.travis/script

23 lines
603 B
Plaintext
Raw Normal View History

2019-07-19 07:02:18 +00:00
#!/bin/bash
set -ex
git remote set-branches --add origin $TRAVIS_BRANCH
git fetch
2019-07-19 07:02:18 +00:00
if [[ ( "$TRAVIS_PULL_REQUEST" != "false" ) && ( "$TEST_SUITE" == "lint" ) ]]; then
# Run cardboardlinter, in case of pull requests
cardboardlinter --refspec origin/$TRAVIS_BRANCH -n auto
2019-07-19 07:02:18 +00:00
fi
if [[ "$TEST_SUITE" == "unittest" ]]; then
# Run tests on all pushes
2019-08-29 10:11:31 +00:00
pushd tts_namespace
2020-06-02 16:54:29 +00:00
nosetests TTS.speaker_encoder.tests --nocapture
nosetests TTS.vocoder.tests --nocapture
nosetests TTS.tests --nocapture
2020-07-09 12:22:16 +00:00
nosetests TTS.tf.tests --nocapture
2019-08-29 10:11:31 +00:00
popd
# Test server package
./tests/test_server_package.sh
2019-07-19 07:02:18 +00:00
fi