2019-07-19 07:02:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
2019-07-19 09:52:58 +00:00
|
|
|
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
|
2019-07-19 09:52:58 +00:00
|
|
|
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
|
2019-11-27 16:14:38 +00:00
|
|
|
# Test server package
|
|
|
|
./tests/test_server_package.sh
|
2019-07-19 07:02:18 +00:00
|
|
|
fi
|