Run tox tests for PyPI packages on Travis

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Christian Heimes
2017-11-20 17:01:59 +01:00
committed by Tomas Krizek
parent 04da856256
commit 9e640190ee
4 changed files with 17 additions and 7 deletions
+9 -4
View File
@@ -5,7 +5,6 @@
# NOTE: this script is intended to run in Travis CI only
test_set=""
developer_mode_opt="--developer-mode"
if [[ $PYTHON == "/usr/bin/python2" ]]
then
@@ -14,6 +13,15 @@ else
env_opt=""
fi
case "$TASK_TO_RUN" in
lint|tox)
# disable developer mode for lint and tox tasks.
developer_mode_opt=""
;;
*)
developer_mode_opt="--developer-mode"
;;
esac
function truncate_log_to_test_failures() {
# chop off everything in the CI_RESULTS_LOG preceding pytest error output
@@ -32,9 +40,6 @@ then
then
git diff origin/$TRAVIS_BRANCH -U0 | pycodestyle --diff &> $PEP8_ERROR_LOG ||:
fi
# disable developer mode for lint task, otherwise we get an error
developer_mode_opt=""
fi
if [[ -n "$TESTS_TO_RUN" ]]