mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-24 09:20:43 +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:
parent
fac6fe506f
commit
81170e8062
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user