mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add a nox session for the Jenkins tornado jobs
This commit is contained in:
parent
43321e80f3
commit
6e5768a3b5
1 changed files with 36 additions and 0 deletions
36
noxfile.py
36
noxfile.py
|
@ -528,6 +528,22 @@ def runtests_cloud(session, coverage):
|
|||
_runtests(session, coverage, cmd_args)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='runtests-tornado')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def runtests_tornado(session, coverage):
|
||||
# Install requirements
|
||||
_install_requirements(session, 'zeromq', 'unittest-xml-reporting==2.2.1')
|
||||
session.install('--progress-bar=off', 'tornado==5.0.2', silent=PIP_INSTALL_SILENT)
|
||||
session.install('--progress-bar=off', 'pyzmq==17.0.0', silent=PIP_INSTALL_SILENT)
|
||||
|
||||
cmd_args = [
|
||||
'--tests-logfile={}'.format(
|
||||
os.path.join(REPO_ROOT, 'artifacts', 'logs', 'runtests.log')
|
||||
),
|
||||
] + session.posargs
|
||||
_runtests(session, coverage, cmd_args)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-parametrized')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
@nox.parametrize('transport', ['zeromq', 'raet', 'tcp'])
|
||||
|
@ -747,6 +763,26 @@ def pytest_cloud(session, coverage):
|
|||
_pytest(session, coverage, cmd_args)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-tornado')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def pytest_tornado(session, coverage):
|
||||
# Install requirements
|
||||
_install_requirements(session, 'zeromq')
|
||||
session.install('--progress-bar=off', 'tornado==5.0.2', silent=PIP_INSTALL_SILENT)
|
||||
session.install('--progress-bar=off', 'pyzmq==17.0.0', silent=PIP_INSTALL_SILENT)
|
||||
|
||||
cmd_args = [
|
||||
'--rootdir', REPO_ROOT,
|
||||
'--log-file={}'.format(
|
||||
os.path.join(REPO_ROOT, 'artifacts', 'logs', 'runtests.log')
|
||||
),
|
||||
'--no-print-logs',
|
||||
'-ra',
|
||||
'-s',
|
||||
] + session.posargs
|
||||
_pytest(session, coverage, cmd_args)
|
||||
|
||||
|
||||
def _pytest(session, coverage, cmd_args):
|
||||
# Create required artifacts directories
|
||||
_create_ci_directories()
|
||||
|
|
Loading…
Add table
Reference in a new issue