3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-24 17:30:51 +01:00

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)
This commit is contained in:
James Lu 2018-08-31 10:06:05 -07:00
parent fac6fe506f
commit 81170e8062

View File

@ -10,7 +10,7 @@ python:
install: python3 setup.py install install: python3 setup.py install
script: script:
- python3 -m compileall . - python3 -m compileall .
- cd test/ && python3 -m unittest *.py - python3 -m unittest discover test/ --verbose
deploy: deploy:
provider: pypi 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" condition: $(python3 -c 'import re,os; print(bool(re.match(r"^(\d+\.){2,}\d+$", os.environ.get("TRAVIS_TAG", ""))))') == "True"
python: '3.6' python: '3.6'
# Because our __init__.py is generated at build-time!
skip_cleanup: true
notifications: notifications:
email: false email: false