Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
dashboards
Commits
91c6166c912b
Commit
9466d2f6
authored
Sep 02, 2020
by
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
Changes
2
Pipelines
174
Hide whitespace changes
Inline
Side-by-side
qa_dashboard.py
View file @
91c6166c
...
...
@@ -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
,
...
...
template/qa.html
View file @
91c6166c
...
...
@@ -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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment