Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
php
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
webarch
php
Commits
7bbee08e
Commit
7bbee08e
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Debug test
parent
cafb86ac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Merge Sury
Pipeline
#20856
failed
2 years ago
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/sapi_absent_checks.yml
+17
-0
17 additions, 0 deletions
tasks/sapi_absent_checks.yml
tasks/sapi_module_checks.yml
+7
-8
7 additions, 8 deletions
tasks/sapi_module_checks.yml
with
24 additions
and
8 deletions
tasks/sapi_absent_checks.yml
0 → 100644
+
17
−
0
View file @
7bbee08e
---
-
name
:
PHP SAPI absent checks
block
:
-
name
:
"
Check
that
SAPI
is
not
set
to
be
present
when
PHP
{{
version
}}
is
set
to
be
removed"
assert
:
that
:
-
sapi.value.state == "absent"
fail_msg
:
"
SAPI
{{
sapi.key
}}
is
not
set
to
be
absent
for
PHP
{{
version
}},
yet
PHP
{{
version
}}
is
set
to
be
removed."
loop
:
"
{{
php_versions[version].sapis
|
dict2items
}}"
loop_control
:
loop_var
:
sapi
label
:
"
{{
sapi.key
}}"
tags
:
-
php
...
This diff is collapsed.
Click to expand it.
tasks/sapi_module_checks.yml
+
7
−
8
View file @
7bbee08e
---
-
name
:
Check that no SAPI modules are set to be enabled and disabled at the same time
-
name
:
PHP SAPI module checks
block
:
-
name
:
"
Loop
through
the
modules_enabled
for
SAPI
{{
sapi.key
}}
for
PHP
{{
version
}}
to
check
that
none
are
also
set
to
be
disabled"
assert
:
that
:
-
mod not in sapi.value.modules_disabled
loop
:
"
{{
sapi.value.modules_enabled
}}"
-
name
:
"
Check
that
no
SAPI
modules
are
set
to
be
enabled
and
disabled
at
the
same
time
for
PHP
{{
version
}}"
include_tasks
:
sapi_module_checks.yml
loop
:
"
{{
php_versions[version].sapis
|
dict2items
}}"
loop_control
:
loop_var
:
mod
label
:
"
{{
mod
}}"
loop_var
:
sapi
label
:
"
{{
sapi.key
}}"
when
:
-
( sapi.value.state is defined ) and ( sapi.value.state == "present" )
-
( sapi.value.modules_enabled is defined ) and ( sapi.value.modules_enabled != [] )
-
( sapi.value.modules_disabled is defined ) and ( sapi.value.modules_disabled != [] )
...
...
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