Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OGSTools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
OpenGeoSys Tools
OGSTools
Commits
613c3f18
Commit
613c3f18
authored
3 months ago
by
Tobias Meisel
Browse files
Options
Downloads
Patches
Plain Diff
[CI] Sphinx warning should be shown in console
parent
89abe7b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!242
[Project] Release 0.5.0
Pipeline
#27359
passed
3 months ago
Stage: .pre
Stage: test
Stage: maintenance
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
with
2 additions
and
2 deletions
.gitlab-ci.yml
+
2
−
2
View file @
613c3f18
...
@@ -194,13 +194,13 @@ docs preview [M]:
...
@@ -194,13 +194,13 @@ docs preview [M]:
-
pip install -e .[docs]
-
pip install -e .[docs]
-
*pip-setup-extra-headless
-
*pip-setup-extra-headless
script
:
script
:
-
make docs SPHINXOPTS="--keep-going -n -j 4"
>
sphinx_output.log
2>&1
-
make docs SPHINXOPTS="--keep-going -n -j 4"
| tee
sphinx_output.log
-
echo "Counting warnings in Sphinx output..."
-
echo "Counting warnings in Sphinx output..."
# Count lines with "WARNING" in the Sphinx log
# Count lines with "WARNING" in the Sphinx log
-
warning_count=$(grep -c "WARNING" sphinx_output.log ||
true
)
-
warning_count=$(grep -c "WARNING" sphinx_output.log ||
true
)
-
echo "Found $warning_count warnings in Sphinx documentation."
-
echo "Found $warning_count warnings in Sphinx documentation."
# Set the warning threshold
# Set the warning threshold
-
warning_threshold=
11
-
warning_threshold=
7
# Check if warnings exceed the threshold
# Check if warnings exceed the threshold
-
if [ "$warning_count" -lt "$warning_threshold" ]; then
-
if [ "$warning_count" -lt "$warning_threshold" ]; then
echo "Warnings ($warning_count) are below the threshold ($warning_threshold). Pipeline is green.";
echo "Warnings ($warning_count) are below the threshold ($warning_threshold). Pipeline is green.";
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment