mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
After #6485 and #6435, it appears that there is no good reason to not fail fast when test, cover or linting scripts are executed. This PR ensures to fail fast by invoking commands throught subprocess.check_call instead of subprocess.call, and by removing the handling of non-zero exit code at the end of theses scripts. As now coverage on Windows is executed with thresholds, I added specific thresholds for this platform. Because some portions of code that are done for Unix platform will not be executed on Windows. Note that coverage reports from Travis and AppVeyor are accumulated on Codecov. So if a file is covered up to 50 % on Linux, and all other parts are covered on Windows, then coverage is 100 % for Codecov. Note: that PR also fixes the ability of coverage tests to fail if thresholds are exceeded. * Use check_call to fail fast in all scripts related to tests/lint/coverage/deploy * Make specific coverage threshold for windows
21 lines
389 B
Python
Executable File
21 lines
389 B
Python
Executable File
#!/usr/bin/env python
|
|
# pip installs packages in editable mode using certbot-auto's requirements file
|
|
# as constraints
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import sys
|
|
|
|
import pip_install
|
|
|
|
def main(args):
|
|
new_args = []
|
|
for arg in args:
|
|
new_args.append('-e')
|
|
new_args.append(arg)
|
|
|
|
pip_install.main(new_args)
|
|
|
|
if __name__ == '__main__':
|
|
main(sys.argv[1:])
|