2020-06-25 00:28:11 +02:00
|
|
|
image: php:7.4.7-cli-buster
|
|
|
|
|
|
|
|
pipelines:
|
|
|
|
default:
|
|
|
|
- step:
|
2020-06-25 00:44:24 +02:00
|
|
|
name: Unit Testing
|
|
|
|
caches:
|
|
|
|
- composer
|
|
|
|
artifacts:
|
2020-06-25 00:51:45 +02:00
|
|
|
- unit_test_results.xml
|
2020-06-25 00:44:24 +02:00
|
|
|
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
|
2020-06-25 00:51:45 +02:00
|
|
|
- vendor/bin/phpunit --log-junit unit_test_results.xml --testdox tests
|
2020-07-05 21:38:41 +02:00
|
|
|
- step:
|
|
|
|
name: Static Code Analysis
|
|
|
|
caches:
|
|
|
|
- composer
|
2020-07-06 18:47:33 +02:00
|
|
|
artifacts:
|
|
|
|
- static_code_analysis_results.json
|
2020-07-05 21:38:41 +02:00
|
|
|
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
|
2021-01-01 22:34:32 +01:00
|
|
|
- php -d memory_limit=1G vendor/bin/phpstan analyse -c phpstan.neon --error-format=prettyJson > static_code_analysis_results.json
|