27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
image: php:7.4.7-cli-buster
|
|
|
|
pipelines:
|
|
default:
|
|
- step:
|
|
name: Unit Testing
|
|
caches:
|
|
- composer
|
|
artifacts:
|
|
- unit_test_results.xml
|
|
script:
|
|
- apt-get update && apt-get install -y unzip
|
|
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
- composer install
|
|
- vendor/bin/phpunit --log-junit unit_test_results.xml --testdox tests
|
|
- step:
|
|
name: Static Code Analysis
|
|
caches:
|
|
- composer
|
|
artifacts:
|
|
- static_code_analysis_results.json
|
|
script:
|
|
- apt-get update && apt-get install -y unzip
|
|
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
- composer install
|
|
- php -d memory_limit=1G vendor/bin/phpstan analyse -c phpstan.neon --error-format=prettyJson > static_code_analysis_results.json
|