2022-03-06 22:57:30 -05:00
|
|
|
pipeline:
|
|
|
|
setup:
|
2022-03-06 23:08:32 -05:00
|
|
|
image: composer:2.2
|
2022-03-06 22:57:30 -05:00
|
|
|
commands:
|
|
|
|
- composer install
|
2022-03-06 23:16:54 -05:00
|
|
|
- mkdir test
|
|
|
|
- touch test/results.txt
|
2022-03-06 22:57:30 -05:00
|
|
|
|
|
|
|
phpcs:
|
|
|
|
group: test
|
2022-03-06 23:08:32 -05:00
|
|
|
image: composer:2.2
|
2022-03-06 22:57:30 -05:00
|
|
|
commands:
|
2022-03-06 23:16:54 -05:00
|
|
|
- composer run-script phpcs >> test/results.txt
|
2022-03-06 22:57:30 -05:00
|
|
|
phpmd:
|
|
|
|
group: test
|
2022-03-06 23:08:32 -05:00
|
|
|
image: composer:2.2
|
2022-03-06 22:57:30 -05:00
|
|
|
commands:
|
2022-03-06 23:16:54 -05:00
|
|
|
- composer run-script phpmd >> test/results.txt
|
|
|
|
|
|
|
|
notify:
|
|
|
|
image: drillster/drone-email
|
|
|
|
host: smtp.int.metaunix.net
|
|
|
|
skip_verify: true
|
|
|
|
from: drone@ci-v1.int.metaunix.net
|
|
|
|
attachment: test/results.txt
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|