mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
Use tox-lsr instead of the scripts in the `.travis/` directory and the asssociated config files. Yes, `.travis/custom.sh` is still there, but once you are familiar with the way that tox-lsr works, you can remove it and use your own custom tox.ini action. The goal of this commit was to make as few changes as possible, to keep feature parity with the old `.travis/` script way of running CI. Also note that linting has moved into tox, so we needed to disable molecule linting. The new version of ansible-lint adds a lot of checks, so these are disabled for now, and should be fixed later. Also, shellcheck is turned off until the network team can address the issues. The `.travis/custom.sh` script is not run in the CI environment, so this was changed slightly to remove the check for `$TRAVIS`, and it is no longer run as a tox testenv in CI. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
22 lines
723 B
INI
22 lines
723 B
INI
# SPDX-License-Identifier: MIT
|
|
[lsr_config]
|
|
lsr_enable = true
|
|
|
|
[lsr_yamllint]
|
|
configfile = .yamllint.yml
|
|
configbasename = .yamllint.yml
|
|
|
|
[lsr_ansible-lint]
|
|
configfile = .ansible-lint
|
|
|
|
[testenv]
|
|
setenv =
|
|
RUN_PYLINT_EXCLUDE = ^(\..*|ensure_provider_tests\.py|print_all_options\.py)$
|
|
RUN_PYTEST_SETUP_MODULE_UTILS = true
|
|
RUN_PYLINT_SETUP_MODULE_UTILS = true
|
|
RUN_PYTEST_EXTRA_ARGS = -v
|
|
RUN_FLAKE8_EXTRA_ARGS = --exclude tests/ensure_provider_tests.py,scripts/print_all_options.py,tests/network/ensure_provider_tests.py,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg
|
|
LSR_PUBLISH_COVERAGE = normal
|
|
|
|
[testenv:shellcheck]
|
|
commands = bash -c 'echo shellcheck is currently not enabled - please fix this'
|