X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=docs%2Fjjb%2Flf-python-jobs.rst;h=2a8e66b783a03db6a1d2da78440d61656a455bc7;hb=de2a34225d44551c358afe05403f4cb3006f50e6;hp=624026db868cbc6d523c0b48e119de56087df64f;hpb=2eec22a45f58378985c12648983c7fe5dbbb76b6;p=releng%2Fglobal-jjb.git diff --git a/docs/jjb/lf-python-jobs.rst b/docs/jjb/lf-python-jobs.rst index 624026db..2a8e66b7 100644 --- a/docs/jjb/lf-python-jobs.rst +++ b/docs/jjb/lf-python-jobs.rst @@ -23,13 +23,36 @@ Jobs for Python projects using GitHub. - github-tox-verify + +Macros +====== + +lf-tox-install +-------------- + +Runs a shell script that installs tox in a Python virtualenv. + +:Required Parameters: + + :python-version: Base Python version to use in the virtualenv. For example + python2 or python3. + + Job Templates ============= Tox Verify ---------- -Tox runner to verify a project +Tox runner to verify a project. This job is pyenv aware so if the image +contains an installation of pyenv at /opt/pyenv it will pick it up and run +Python tests with the appropriate Python versions. This job will set the +following pyenv variables before running. + +.. code:: bash + + export PYENV_ROOT="/opt/pyenv" + export PATH="$PYENV_ROOT/bin:$PATH" :Template Names: @@ -49,6 +72,8 @@ Tox runner to verify a project :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in seconds before aborting build. (default: 10) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) + :python-version: Version of Python to configure as a base in virtualenv. + (default: python3) :stream: Keyword representing a release code-name. Often the same as the branch. (default: master) :submodule-recursive: Whether to checkout submodules recursively.