TTS/.travis/script

18 lines
404 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
2019-07-19 07:02:18 +00:00
python -m unittest
2019-08-29 10:11:31 +00:00
popd
2019-07-19 07:02:18 +00:00
fi