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
|
|
|
|
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/phpstan analyse -c phpstan.neon
|