mirror of
https://github.com/wassname/TTS.git
synced 2026-09-21 12:40:58 +08:00
Add a job to run unit tests
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
if [[ ( "$TRAVIS_PULL_REQUEST" != "false" ) && ( "$TEST_SUITE" == "lint" ) ]]; then
|
||||
# Run cardboardlinter, in case of pull requests
|
||||
cardboardlinter --refspec $TRAVIS_BRANCH -n auto
|
||||
fi
|
||||
|
||||
if [[ "$TEST_SUITE" == "unittest" ]]; then
|
||||
# Run tests on all pushes
|
||||
python -m unittest
|
||||
fi
|
||||
Reference in New Issue
Block a user