Add a job to run unit tests

This commit is contained in:
Reuben Morais
2019-07-19 09:57:56 +02:00
parent 11e7895329
commit 4a24cff3a7
2 changed files with 26 additions and 10 deletions
Executable
+12
View File
@@ -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