From 81170e80628f8b42c26fffa01a45ba6e3dceaaa3 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 31 Aug 2018 10:06:05 -0700 Subject: [PATCH] Try to fix Travis deployments - Use unittest discover instead of 'cd' to run tests - Disable cleanup before deploy (as our __init__.py is generated at build time) --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a8e9cef..fd73959 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ python: install: python3 setup.py install script: - python3 -m compileall . - - cd test/ && python3 -m unittest *.py + - python3 -m unittest discover test/ --verbose deploy: provider: pypi @@ -27,5 +27,8 @@ deploy: condition: $(python3 -c 'import re,os; print(bool(re.match(r"^(\d+\.){2,}\d+$", os.environ.get("TRAVIS_TAG", ""))))') == "True" python: '3.6' + # Because our __init__.py is generated at build-time! + skip_cleanup: true + notifications: email: false