Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • willsalmon/buildstream
  • CumHoleZH/buildstream
  • tchaik/buildstream
  • DCotyPortfolio/buildstream
  • jesusoctavioas/buildstream
  • patrickmmartin/buildstream
  • franred/buildstream
  • tintou/buildstream
  • alatiera/buildstream
  • martinblanchard/buildstream
  • neverdie22042524/buildstream
  • Mattlk13/buildstream
  • PServers/buildstream
  • phamnghia610909/buildstream
  • chiaratolentino/buildstream
  • eysz7-x-x/buildstream
  • kerrick1/buildstream
  • matthew-yates/buildstream
  • twofeathers/buildstream
  • mhadjimichael/buildstream
  • pointswaves/buildstream
  • Mr.JackWilson/buildstream
  • Tw3akG33k/buildstream
  • AlexFazakas/buildstream
  • eruidfkiy/buildstream
  • clamotion2/buildstream
  • nanonyme/buildstream
  • wickyjaaa/buildstream
  • nmanchev/buildstream
  • bojorquez.ja/buildstream
  • mostynb/buildstream
  • highpit74/buildstream
  • Demo112/buildstream
  • ba2014sheer/buildstream
  • tonimadrino/buildstream
  • usuario2o/buildstream
  • Angelika123456/buildstream
  • neo355/buildstream
  • corentin-ferlay/buildstream
  • coldtom/buildstream
  • wifitvbox81/buildstream
  • 358253885/buildstream
  • seanborg/buildstream
  • SotK/buildstream
  • DouglasWinship/buildstream
  • karansthr97/buildstream
  • louib/buildstream
  • bwh-ct/buildstream
  • robjh/buildstream
  • we88c0de/buildstream
  • zhengxian5555/buildstream
51 results
Show changes
Commits on Source (8)
...@@ -151,6 +151,18 @@ tests-fedora-missing-deps: ...@@ -151,6 +151,18 @@ tests-fedora-missing-deps:
- ${TEST_COMMAND} - ${TEST_COMMAND}
# Lint separately from testing
lint:
stage: test
before_script:
# Diagnostics
- python3 --version
script:
- tox -e lint
except:
- schedules
# Automatically build documentation for every commit, we want to know # Automatically build documentation for every commit, we want to know
# if building documentation fails even if we're not deploying it. # if building documentation fails even if we're not deploying it.
......
...@@ -1498,6 +1498,18 @@ option when running tox:: ...@@ -1498,6 +1498,18 @@ option when running tox::
tox -e py37 tox -e py37
Linting is performed separately from testing. In order to run the linting step which
consists of running the ``pycodestyle`` and ``pylint`` tools, run the following::
tox -e lint
.. tip::
The project specific pylint and pycodestyle configurations are stored in the
toplevel buildstream directory in the ``.pylintrc`` file and ``setup.cfg`` files
respectively. These configurations can be interesting to use with IDEs and
other developer tooling.
The output of all failing tests will always be printed in the summary, but The output of all failing tests will always be printed in the summary, but
if you want to observe the stdout and stderr generated by a passing test, if you want to observe the stdout and stderr generated by a passing test,
you can pass the ``-s`` option to pytest as such:: you can pass the ``-s`` option to pytest as such::
...@@ -1532,15 +1544,6 @@ output. To run them, you can use:: ...@@ -1532,15 +1544,6 @@ output. To run them, you can use::
tox -- --integration tox -- --integration
By default, buildstream also runs pylint on all files. Should you want
to run just pylint (these checks are a lot faster), you can do so
with::
tox -- -m pylint
Alternatively, any IDE plugin that uses pytest should automatically
detect the ``.pylintrc`` in the project's root directory.
In case BuildStream's dependencies were updated since you last ran the In case BuildStream's dependencies were updated since you last ran the
tests, you might see some errors like tests, you might see some errors like
``pytest: error: unrecognized arguments: --codestyle``. If this happens, you ``pytest: error: unrecognized arguments: --codestyle``. If this happens, you
......
...@@ -11,11 +11,13 @@ parentdir_prefix = BuildStream- ...@@ -11,11 +11,13 @@ parentdir_prefix = BuildStream-
test=pytest test=pytest
[tool:pytest] [tool:pytest]
addopts = --verbose --basetemp ./tmp --codestyle --pylint --pylint-rcfile=.pylintrc --cov=buildstream --cov-config .coveragerc --durations=20 addopts = --verbose --basetemp ./tmp --cov=buildstream --cov-config .coveragerc --durations=20
norecursedirs = tests/integration/project integration-cache tmp __pycache__ .eggs norecursedirs = tests/integration/project integration-cache tmp __pycache__ .eggs
python_files = tests/*/*.py python_files = tests/*/*.py
codestyle_max_line_length = 119
codestyle_ignore = E129 E125 W504 W605
codestyle_exclude = doc/source/conf.py buildstream/_fuse/fuse.py buildstream/_protos/**/*py
env = env =
D:BST_TEST_SUITE=True D:BST_TEST_SUITE=True
[pycodestyle]
max-line-length = 119
ignore = E129,E125,W504,W605
exclude = .git/**,.tox/**,doc/source/conf.py,buildstream/_fuse/fuse.py,buildstream/_protos/**/*py
coverage == 4.4.0 coverage == 4.4.0
pylint pylint
pycodestyle
pytest >= 3.9 pytest >= 3.9
pytest-codestyle >= 1.4.0
pytest-cov >= 2.5.0 pytest-cov >= 2.5.0
pytest-datafiles >= 2.0 pytest-datafiles >= 2.0
pytest-env pytest-env
pytest-pylint
pytest-xdist pytest-xdist
pytest-timeout pytest-timeout
pyftpdlib pyftpdlib
coverage==4.4 coverage==4.4
pylint==2.2.2 pylint==2.2.2
pycodestyle==2.4.0
pytest==4.0.2 pytest==4.0.2
pytest-codestyle==1.4.0
pytest-cov==2.6.0 pytest-cov==2.6.0
pytest-datafiles==2.0 pytest-datafiles==2.0
pytest-env==0.6.2 pytest-env==0.6.2
pytest-pylint==0.13.0
pytest-xdist==1.25.0 pytest-xdist==1.25.0
pytest-timeout==1.3.3 pytest-timeout==1.3.3
pyftpdlib==1.5.4 pyftpdlib==1.5.4
...@@ -21,8 +20,6 @@ mccabe==0.6.1 ...@@ -21,8 +20,6 @@ mccabe==0.6.1
more-itertools==5.0.0 more-itertools==5.0.0
pluggy==0.8.0 pluggy==0.8.0
py==1.7.0 py==1.7.0
pycodestyle==2.4.0
pytest-forked==0.2 pytest-forked==0.2
six==1.12.0 six==1.12.0
typed-ast==1.1.1
wrapt==1.10.11 wrapt==1.10.11
Click Click
grpcio >= 1.10 grpcio >= 1.10
jinja2 >= 2.10 Jinja2 >= 2.10
pluginbase pluginbase
protobuf >= 3.5 protobuf >= 3.5
psutil psutil
......
Click==7.0 Click==7.0
grpcio==1.17.1 grpcio==1.17.1
Jinja2==2.10
pluginbase==0.7 pluginbase==0.7
protobuf==3.6.1 protobuf==3.6.1
psutil==5.4.8 psutil==5.4.8
...@@ -13,6 +14,5 @@ psutil==5.4.8 ...@@ -13,6 +14,5 @@ psutil==5.4.8
ruamel.yaml==0.15.51 ruamel.yaml==0.15.51
setuptools==39.0.1 setuptools==39.0.1
## The following requirements were added by pip freeze: ## The following requirements were added by pip freeze:
Jinja2==2.10
MarkupSafe==1.1.0 MarkupSafe==1.1.0
six==1.12.0 six==1.12.0
...@@ -13,6 +13,15 @@ passenv = ...@@ -13,6 +13,15 @@ passenv =
GI_TYPELIB_PATH GI_TYPELIB_PATH
INTEGRATION_CACHE INTEGRATION_CACHE
[testenv:lint]
commands =
pycodestyle
pylint buildstream
deps =
-rtools/requirements.txt
-rtools/dev-requirements.txt
-rtools/plugin-requirements.txt
[testenv:docs] [testenv:docs]
commands = commands =
make -C doc make -C doc
......