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
|
2020-07-16 16:54:41 +00:00
|
|
|
nosetests tests --nocapture
|
2020-07-16 17:32:33 +00:00
|
|
|
./tests/test_server_package.sh
|
2020-07-16 13:05:36 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ "$TEST_SUITE" == "testscripts" ]]; then
|
2020-07-16 17:32:33 +00:00
|
|
|
# test model training scripts
|
2020-07-16 17:17:04 +00:00
|
|
|
./tests/test_tts_train.sh
|
|
|
|
./tests/test_vocoder_train.sh
|
2019-07-19 07:02:18 +00:00
|
|
|
fi
|