Create irc-meetings-ical-tox-publish job

This is in preparation for making this output a static site on AFS.
Put the output in the expected location for the publish jobs, make a
symlink to the old location.

Change-Id: I73ff15231a6a3b2d86eeff0ee4e90dbf77ed9e2e
This commit is contained in:
Ian Wienand 2021-06-02 11:00:40 +10:00
parent 843273b9dd
commit 48dd7ab00f
2 changed files with 15 additions and 9 deletions

View File

@ -1,6 +1,6 @@
- job: - job:
name: irc-meetings-tox-ical name: irc-meetings-ical-tox-publish
parent: openstack-tox parent: openstack-tox-docs
description: | description: |
Run tests using tox with the ``ical`` environment. Run tests using tox with the ``ical`` environment.
vars: vars:
@ -9,7 +9,7 @@
- project: - project:
check: check:
jobs: jobs:
- irc-meetings-tox-ical - irc-meetings-ical-tox-publish
gate: gate:
jobs: jobs:
- irc-meetings-tox-ical - irc-meetings-ical-tox-publish

16
tox.ini
View File

@ -13,14 +13,20 @@ commands = {posargs}
[testenv:ical] [testenv:ical]
basepython = python3 basepython = python3
whitelist_externals = mkdir whitelist_externals =
mkdir
ln
commands = commands =
mkdir -p output/calendars mkdir -p doc/build/html/calendars
yaml2ical -n "OpenStack Meetings" \ yaml2ical -n "OpenStack Meetings" \
-d "Meeting schedule for the OpenStack projects" \ -d "Meeting schedule for the OpenStack projects" \
-y meetings -o output/irc-meetings.ical \ -y meetings -o doc/build/html/irc-meetings.ical \
-t meetingindex.jinja -w output/index.html -f -t meetingindex.jinja -w doc/build/html/index.html -f
yaml2ical -y meetings -i output/calendars/ -f yaml2ical -y meetings -i doc/build/html/calendars/ -f
# NOTE(ianw) 2021-06-02 : to maintain compatbility
# with old jobs that aren't using the default tox docs
# publishing methods, we symlink ./output
ln -sf ./doc/build/html/ output
[testenv:pep8] [testenv:pep8]
basepython = python3 basepython = python3