[Notes] [Git][BuildStream/buildstream][phil/tox-vev-environment] 3 commits: .gitlab-ci.yml: Enable parallel testing with 2 CPUs



Title: GitLab

Phil Dawson pushed to branch phil/tox-vev-environment at BuildStream / buildstream

Commits:

3 changed files:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -12,7 +12,7 @@ stages:
    12 12
     variables:
    
    13 13
       PYTEST_ADDOPTS: "--color=yes"
    
    14 14
       INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache"
    
    15
    -  TEST_COMMAND: "tox -- --color=yes --integration"
    
    15
    +  TEST_COMMAND: "tox -- --color=yes --integration -n 2"
    
    16 16
       COVERAGE_PREFIX: "${CI_JOB_NAME}."
    
    17 17
     
    
    18 18
     
    

  • CONTRIBUTING.rst
    ... ... @@ -1589,6 +1589,15 @@ can run ``tox`` with ``-r`` or ``--recreate`` option.
    1589 1589
     
    
    1590 1590
          ./setup.py test --addopts 'tests/frontend/buildtrack.py::test_build_track'
    
    1591 1591
     
    
    1592
    +.. tip::
    
    1593
    +
    
    1594
    +   We also have an environment called 'venv' which takes any arguments
    
    1595
    +   you give it and runs them inside the same virtualenv we use for our
    
    1596
    +   tests::
    
    1597
    +
    
    1598
    +     tox -e venv -- <your command(s) here>
    
    1599
    +     
    
    1600
    +   Any commands after ``--`` will be run a virtualenv managed by tox.
    
    1592 1601
     
    
    1593 1602
     Observing coverage
    
    1594 1603
     ~~~~~~~~~~~~~~~~~~
    

  • tox.ini
    ... ... @@ -91,3 +91,14 @@ commands =
    91 91
     deps =
    
    92 92
         click-man >= 0.3.0
    
    93 93
         -rrequirements/requirements.txt
    
    94
    +
    
    95
    +#
    
    96
    +# Usefull for running arbitrary scripts in a BuildStream virtual env
    
    97
    +#
    
    98
    +[testenv:venv]
    
    99
    +commands = {posargs}
    
    100
    +deps =
    
    101
    +    -rrequirements/requirements.txt
    
    102
    +    -rrequirements/dev-requirements.txt
    
    103
    +    -rrequirements/plugin-requirements.txt
    
    104
    +whitelist_externals = *



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]