如果我:
在 travis 中运行构建,并且
测试正确通过,但是
将覆盖结果上传到 codecov 时出现问题,
...特拉维斯继续进行部署。在这种情况下,如何阻止 travis 部署?
不论上传失败的部署:
这是我的.travis.yml
:
dist: trusty
language: python
python:
- '3.6'
# Install tox and codecov
install:
- pip install tox-travis
- pip install codecov
# Use tox to run tests in the matrix of environments
script:
- tox -r
# Push the results back to codecov
after_success:
- codecov --commit=$TRAVIS_COMMIT"
# Deploy updates on master to pypi, which will only succeed if there's been a version bump
deploy:
provider: pypi
skip_cleanup: true
skip_existing: true
user: me
password:
secure: "stuff"
on:
branch: master