init
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
commit
4c992b4222
@ -0,0 +1,20 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker-build
|
||||||
|
image: image: plugins/docker
|
||||||
|
settings:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
context: .
|
||||||
|
registry: hub.codefirst.iut.uca.fr
|
||||||
|
repo: hub.codefirst.iut.uca.fr/alexandre.agostinho/codefirst-dronesonarplugin-php
|
||||||
|
username:
|
||||||
|
from_secret: SECRET_REGISTRY_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: SECRET_REGISTRY_PASSWORD
|
@ -0,0 +1,18 @@
|
|||||||
|
FROM aosapps/drone-sonar-plugin AS base
|
||||||
|
|
||||||
|
FROM cimg/php:8.2
|
||||||
|
COPY --from=base /bin/drone-sonar /bin/
|
||||||
|
|
||||||
|
RUN pecl install xdebug \
|
||||||
|
&& php-ext enable xdebug \
|
||||||
|
&& echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
|
||||||
|
&& wget -O phpunit.phar https://phar.phpunit.de/phpunit-10.phar \
|
||||||
|
&& sudo mv phpunit.phar /usr/local/bin/phpunit \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
&& phpunit --version
|
||||||
|
|
||||||
|
|
||||||
|
#RUN phpunit ${TESTS_FOLDER} --coverage-clover=coverage.xml
|
||||||
|
|
||||||
|
ENTRYPOINT /bin/drone-sonar
|
||||||
|
|
Loading…
Reference in new issue