-
-
Save n1c0l4stournier/ac9f34c90eb683569697fd8958203ccb to your computer and use it in GitHub Desktop.
Code quality testing with SonarQube and Gitlab CI for PHP applications - 03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php: | |
stage: build | |
image: | |
name: php:8.0 | |
before_script: | |
- apt-get update -yqq | |
- apt-get install git unzip -yqq | |
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
- php composer-setup.php --install-dir=/usr/bin --filename=composer --version=2.0.11 | |
- php -r "unlink('composer-setup.php');" | |
- pecl install xdebug-3.0.0 | |
- docker-php-ext-enable xdebug | |
script: | |
- composer install | |
cache: | |
key: "${CI_JOB_NAME}-build" | |
paths: | |
- vendor | |
only: | |
- merge_requests | |
- master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment