Commit 9466d2f6 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat(qa): display if cube is in new format

parent c94185424ab0
Pipeline #13605 passed with stages
in 3 minutes and 27 seconds
......@@ -35,6 +35,7 @@ for number, cube in enumerate(all_cubes):
has_tox = "tox.ini" in cube_files
has_gitlab_ci = ".gitlab-ci.yml" in cube_files
has_readme_rst = bool({"README.rst", "README.md"} & cube_files) # set intersection
is_new_format = f"cubicweb_{cube_normalized_name}" in cube_files
has_doc = bool({"doc", "docs"} & cube_files) # set intersection
has_readthedocs = requests.get(f"https://cubicweb-{cube_normalized_name}.readthedocs.io").status_code == 200
......@@ -71,6 +72,7 @@ for number, cube in enumerate(all_cubes):
"cube": cube.attributes,
"has_doc": has_doc,
"has_readthedocs": has_readthedocs,
"is_new_format": is_new_format,
"has_tox": has_tox,
"has_gitlab_ci": has_gitlab_ci,
"has_readme_rst": has_readme_rst,
......
......@@ -4,6 +4,7 @@
<th>tox</th>
<th>gitlab-ci</th>
<th>README.rst/md</th>
<th>new format</th>
<th>doc</th>
<th>readthedocs</th>
<th>py2 tests</th>
......@@ -22,6 +23,7 @@
<td class="{{ "true" if cube["has_tox"] else "false" }}"></td>
<td class="{{ "true" if cube["has_gitlab_ci"] else "false" }}"></td>
<td class="{{ "true" if cube["has_readme_rst"] else "false" }}"></td>
<td class="{{ "true" if cube["is_new_format"] else "false" }}"></td>
<td class="{{ "true" if cube["has_doc"] else "false" }}"></td>
{% if cube["has_readthedocs"] %}
<td class="true readthedocs">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment