From 48dd7ab00f6f94aa5341c5688a19716d34a71d08 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 2 Jun 2021 11:00:40 +1000 Subject: [PATCH] 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 --- .zuul.yaml | 8 ++++---- tox.ini | 16 +++++++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 1bc80d56..0f8d0570 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,6 +1,6 @@ - job: - name: irc-meetings-tox-ical - parent: openstack-tox + name: irc-meetings-ical-tox-publish + parent: openstack-tox-docs description: | Run tests using tox with the ``ical`` environment. vars: @@ -9,7 +9,7 @@ - project: check: jobs: - - irc-meetings-tox-ical + - irc-meetings-ical-tox-publish gate: jobs: - - irc-meetings-tox-ical + - irc-meetings-ical-tox-publish diff --git a/tox.ini b/tox.ini index 5c8880e6..4f787f63 100644 --- a/tox.ini +++ b/tox.ini @@ -13,14 +13,20 @@ commands = {posargs} [testenv:ical] basepython = python3 -whitelist_externals = mkdir +whitelist_externals = + mkdir + ln commands = - mkdir -p output/calendars + mkdir -p doc/build/html/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 + -y meetings -o doc/build/html/irc-meetings.ical \ + -t meetingindex.jinja -w doc/build/html/index.html -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] basepython = python3