Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(configs): remove pip progress bars (requires pip>=10) #468

Merged
merged 1 commit into from
Jul 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,26 @@ def run_virtual(cmd):
return ["env", "-i", "PATH=" + os.getenv("PATH"), "bash", "-c", "source {}/bin/activate && {}".format(env_name, cmd)]


def pip_install(module_name):
return "python3.7 -m pip --default-timeout=1200 install --progress-bar off -U " + module_name


configs = Variations([dict(name="Update Docker images", command=["make", "images"]),
dict(name="Update Pylint", command=["python3.7", "-m", "pip", "install", "-U", "--user", "pylint"]),
dict(name="Update Pylint", command=["python3.7", "-m", "pip", "install", "-U", "--user",
"--progress-bar", "off", "pylint"]),
dict(name="Create virtual environment",
command=["python3.7", "-m", "venv", env_name]),
dict(name="Install development",
command=run_virtual("python3.7 -m pip --default-timeout=1200 install .[development] -U")),
dict(name="Install development", command=run_virtual(pip_install(".[development]"))),
dict(name="Make", artifacts="doc/_build", command=run_virtual("make")),

dict(name="Install tests", artifacts="junit_results.xml",
command=run_virtual("python3.7 -m pip --default-timeout=1200 install .[test] -U")),
command=run_virtual(pip_install(".[test]"))),
dict(name="Make tests", artifacts="htmlcov",
command=run_virtual("export LANG=en_US.UTF-8; make test")),

dict(name="Run static pylint", code_report=True,
command=["python3.7", "-m", "universum.analyzers.pylint",
"--python-version=3.7", "--rcfile=pylintrc", "--result-file=${CODE_REPORT_FILE}",
command=["python3.7", "-m", "universum.analyzers.pylint", "--python-version=3.7",
"--rcfile=pylintrc", "--result-file=${CODE_REPORT_FILE}",
"--files", "*.py", "universum/", "tests/"]),

dict(name="Run Jenkins plugin Java tests",
Expand Down