add deploy.yaml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marko
2022-07-19 15:39:38 +02:00
parent 5302e6ca99
commit b0f7f04ba6
6 changed files with 38 additions and 44 deletions

View File

@@ -6,8 +6,20 @@ steps:
image: composer
commands:
- composer install
- name: cleanup
image: php:8.1
commands:
- apt-get update && apt-get install -y git zip
- curl -L https://phar.phpunit.de/phpunit.phar -o /usr/local/bin/phpunit
- curl -L https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -o /usr/local/bin/phpcs
- curl -L https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -o /usr/local/bin/phpcbf
- chmod +x /usr/local/bin/phpunit
- chmod +x /usr/local/bin/phpcs
- chmod +x /usr/local/bin/phpcbf
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- phpcs -n --standard=PSR2 .
- name: test
image: php:8.1
commands:
- vendor/bin/phpunit --configuration config.xml
- vendor/bin/phpunit