Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal
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
GitLab CI/CD
Drupal
Commits
81f50513
Commit
81f50513
authored
3 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Further improve settings for extra tests from GitLab
parent
4833f247
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/gitlab.yml
+23
-2
23 additions, 2 deletions
tests/gitlab.yml
tests/lakedrops.yml
+11
-0
11 additions, 0 deletions
tests/lakedrops.yml
with
34 additions
and
2 deletions
tests/gitlab.yml
+
23
−
2
View file @
81f50513
...
...
@@ -12,8 +12,9 @@ include:
-
default
variables
:
GIT_STRATEGY
:
none
needs
:
[
'
Build
Prod
Site'
]
dependencies
:
-
'
Build
Site'
-
'
Build
Prod
Site'
# ==================================== Code Quality
code_quality
:
...
...
@@ -21,9 +22,11 @@ code_quality:
variables
:
GIT_STRATEGY
:
none
CODE_QUALITY_IMAGE
:
registry.lakedrops.com/docker/code-climate-drupal/code-climate-drupal
needs
:
[
'
Build
Site'
]
artifacts
:
name
:
code-quality
paths
:
[
'
gl-code-quality-report.json'
]
reports
:
codequality
:
gl-code-quality-report.json
rules
:
-
if
:
'
$DISABLE_GITLAB_CI_TEST_CODE_QUALITY
!=
"1"'
...
...
@@ -31,35 +34,50 @@ code_quality:
bandit-sast
:
<<
:
*test_gitlab_default
artifacts
:
name
:
bandit-sast
paths
:
[
'
gl-sast-report.json'
]
reports
:
sast
:
gl-sast-report.json
rules
:
-
if
:
'
$DISABLE_GITLAB_CI_TEST_BANDIT_SAST
!=
"1"'
eslint-sast
:
<<
:
*test_gitlab_default
artifacts
:
name
:
esllint-sast
paths
:
[
'
gl-sast-report.json'
]
reports
:
sast
:
gl-sast-report.json
rules
:
-
if
:
'
$DISABLE_GITLAB_CI_TEST_ESLINT_SAST
!=
"1"'
nodejs-scan-sast
:
<<
:
*test_gitlab_default
artifacts
:
name
:
nodejs-scan-sast
paths
:
[
'
gl-sast-report.json'
]
reports
:
sast
:
gl-sast-report.json
rules
:
-
if
:
'
$DISABLE_GITLAB_CI_TEST_NODEJS_SCAN_SAST
!=
"1"'
phpcs-security-audit-sast
:
<<
:
*test_gitlab_default
artifacts
:
name
:
phpcs-security-audit-sast
paths
:
[
'
gl-sast-report.json'
]
reports
:
sast
:
gl-sast-report.json
rules
:
-
if
:
'
$DISABLE_GITLAB_CI_TEST_PHPCS_SECURITY_AUDIT_SAST
!=
"1"'
semgrep-sast
:
<<
:
*test_gitlab_default
artifacts
:
name
:
semgrep-sast
paths
:
[
'
gl-sast-report.json'
]
reports
:
sast
:
gl-sast-report.json
rules
:
-
if
:
'
$DISABLE_GITLAB_CI_TEST_SEMGREP_SAST
!=
"1"'
...
...
@@ -67,6 +85,9 @@ semgrep-sast:
secret_detection
:
<<
:
*test_gitlab_default
artifacts
:
name
:
secret-detection
paths
:
[
'
gl-secret-detection-report.json'
]
reports
:
secret_detection
:
gl-secret-detection-report.json
rules
:
-
if
:
'
$DISABLE_GITLAB_CI_TEST_SECRET_DETECTION
!=
"1"'
This diff is collapsed.
Click to expand it.
tests/lakedrops.yml
+
11
−
0
View file @
81f50513
...
...
@@ -5,6 +5,7 @@
image
:
registry.lakedrops.com/docker/gitlab-drupal-ci:php-${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}
variables
:
GIT_STRATEGY
:
none
needs
:
[
'
Build
Site'
]
dependencies
:
-
'
Build
Site'
...
...
@@ -45,6 +46,11 @@ Test PHPUnit:
Test Behat
:
<<
:
*test_lakedrops_default
needs
:
-
job
:
Import DB
optional
:
true
-
job
:
Update DB
optional
:
true
script
:
-
if [[ -f behat.xml ]]; then rm behat.xml; fi
-
ahoy behat update
...
...
@@ -61,6 +67,11 @@ Test Behat:
Test Backstop
:
<<
:
*test_lakedrops_default
needs
:
-
job
:
Import DB
optional
:
true
-
job
:
Update DB
optional
:
true
script
:
-
backstop test
artifacts
:
...
...
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