837d0927d9
Create a Zuul v3 native ical tox job to allow removing the legacy ical job. This failed initially pep8 tools/check_chair.py since the .zuul.yaml file was parsed as well. Update invocation in tox.ini so that only the meetings directory is checked. Needed-By: Ida25d6b612474b9e42e16cf00bc3059c421796ef Change-Id: I48f00531687bb8488283b964ee64fa4c5706bc0e
38 lines
868 B
INI
38 lines
868 B
INI
[tox]
|
|
envlist = ical,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:ical]
|
|
whitelist_externals = mkdir
|
|
commands =
|
|
mkdir -p output/calendars
|
|
yaml2ical -n "OpenStack Meetings" \
|
|
-d "Meeting schedule for the OpenStack projects" \
|
|
-y meetings -o output/irc-meetings.ical \
|
|
-t meetingindex.jinja -w output/index.html -f
|
|
yaml2ical -y meetings -i output/calendars/ -f
|
|
|
|
[testenv:pep8]
|
|
whitelist_externals = bash
|
|
commands =
|
|
bash test_tools/flake8wrap.sh {posargs}
|
|
python tools/check_chair.py -y {toxinidir}/meetings
|
|
python tools/check_channels.py -y {toxinidir}/meetings
|
|
|
|
[flake8]
|
|
ignore =
|
|
exclude = .git,.tox
|
|
max-complexity = 14
|
|
|
|
[hacking]
|
|
import_exceptions =
|