Skip to content
Snippets Groups Projects
Commit 28bd720d authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Update .gitlab-ci.yml file validate PHP

parent d8fe5a59
No related branches found
No related tags found
No related merge requests found
Pipeline #44171 failed
# To use this script, you must have the following variables defined
# You can define them at the project or the group level
#
# SONAR_URL: Full URL to the SonarQube server
# SONAR_TOKEN: API token for SonarQube
stages:
- Test
- Security
- QA
PHP Lint:
stage: Test
image: its-registry.unl.edu/unl-its/docker-ci/php-lint:7.3
tags:
- docker
script:
- php-lint -d . -e .php -e .phtml
Dependency Check:
stage: Security
image: its-registry.unl.edu/unl-its/docker-ci/dependency-check
tags:
- docker
cache:
policy: push
paths:
- dep_check
script:
- dependency-check -noupdate -f JSON -f XML -f HTML -s . -o ./dep_check --project "$CI_PROJECT_TITLE" --enableExperimental
SonarQube:
stage: QA
image: its-registry.unl.edu/unl-its/docker-ci/static-code-analysis:php
tags:
- docker
only:
- master
cache:
policy: pull
paths:
- dep_check
script:
- sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_TOKEN
-Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.projectName="$CI_PROJECT_TITLE"
-Dsonar.sources=.
-Dsonar.dependencyCheck.reportPath=./dep_check/dependency-check-report.xml
-Dsonar.dependencyCheck.jsonReportPath=./dep_check/dependency-check-report.json
-Dsonar.dependencyCheck.htmlReportPath=./dep_check/dependency-check-report.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment