Loading ci/setup_pages.py +9 −3 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ JOBS_BASOP_REPO = [ "ivas-pytest-compare_ref-long-enc", "ivas-pytest-compare_ref-long-enc-lev+10", "ivas-pytest-compare_ref-long-enc-lev-10", "complexity-stereo-in-ext-out", ] JOBS_FOR_PROJECT_ID = { Loading Loading @@ -77,7 +78,7 @@ def main(): index_html = PUBLIC_FOLDER.joinpath("index.html") if project_id == PROJECT_ID_FLOAT_REPO: create_landing_page_float_repo(jobs, index_html) create_landing_page(jobs, index_html, project_id) elif project_id == PROJECT_ID_BASOP_REPO: src = pathlib.Path("ci/basop-pages/basop_index.html").absolute() shutil.move(src, index_html) Loading @@ -85,7 +86,7 @@ def main(): sys.exit(0) def create_landing_page_float_repo(jobs, index_html): def create_landing_page(jobs, index_html, project_id): # dynamically create the complexity links on the landing page link_html = list() link_html = ["<ul>"] Loading @@ -97,8 +98,13 @@ def create_landing_page_float_repo(jobs, index_html): link_html.append("</ul>") link_html_text = "\n".join(link_html) if project_id == PROJECT_ID_FLOAT_REPO: index_template = "index-pages.html" elif project_id == PROJECT_ID_BASOP_REPO: index_template = "basop-pages/basop_index.html" index_pages_tmpl_path = ( pathlib.Path(__file__).parent.joinpath("index-pages.html").absolute() pathlib.Path(__file__).parent.joinpath(index_template).absolute() ) with open(index_pages_tmpl_path) as f: Loading Loading
ci/setup_pages.py +9 −3 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ JOBS_BASOP_REPO = [ "ivas-pytest-compare_ref-long-enc", "ivas-pytest-compare_ref-long-enc-lev+10", "ivas-pytest-compare_ref-long-enc-lev-10", "complexity-stereo-in-ext-out", ] JOBS_FOR_PROJECT_ID = { Loading Loading @@ -77,7 +78,7 @@ def main(): index_html = PUBLIC_FOLDER.joinpath("index.html") if project_id == PROJECT_ID_FLOAT_REPO: create_landing_page_float_repo(jobs, index_html) create_landing_page(jobs, index_html, project_id) elif project_id == PROJECT_ID_BASOP_REPO: src = pathlib.Path("ci/basop-pages/basop_index.html").absolute() shutil.move(src, index_html) Loading @@ -85,7 +86,7 @@ def main(): sys.exit(0) def create_landing_page_float_repo(jobs, index_html): def create_landing_page(jobs, index_html, project_id): # dynamically create the complexity links on the landing page link_html = list() link_html = ["<ul>"] Loading @@ -97,8 +98,13 @@ def create_landing_page_float_repo(jobs, index_html): link_html.append("</ul>") link_html_text = "\n".join(link_html) if project_id == PROJECT_ID_FLOAT_REPO: index_template = "index-pages.html" elif project_id == PROJECT_ID_BASOP_REPO: index_template = "basop-pages/basop_index.html" index_pages_tmpl_path = ( pathlib.Path(__file__).parent.joinpath("index-pages.html").absolute() pathlib.Path(__file__).parent.joinpath(index_template).absolute() ) with open(index_pages_tmpl_path) as f: Loading