Try to deploy app 2
continuous-integration/drone/push Build is failing Details

unit_test
dorian.hodin 2 years ago
parent f3bfdc49b7
commit dd991c7a98

@ -11,8 +11,8 @@ steps:
- name: app-image
image: plugins/docker
settings:
dockerfile: Dockerfile
context: ./Source/
dockerfile: ./Source/Dockerfile
context: Source
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/dorian.hodin/sae4.01_formulaire
username:
@ -38,7 +38,7 @@ steps:
SONAR_TOKEN:
from_secret: SONARQ_TOKEN
commands:
- curl https://codefirst.iut.uca.fr/containers/Temoignages-app-image/Source/coverage.xml -o /drone/src/coverage.xml
- curl https://codefirst.iut.uca.fr/containers/Temoignages-app-image/coverage.xml -o /drone/src/coverage.xml
- sonar-scanner -Dsonar.projectKey=SAE4.01_FORMULAIRE
-Dsonar.sources=.
-Dsonar.inclusions=**/*.php

@ -1,9 +1,9 @@
FROM php:8.1-apache
RUN apt-get update && apt-get install -y git zip
COPY Source /var/www/html
WORKDIR /var/www/html/Source/Config
COPY . /var/www/html
WORKDIR /var/www/html/Config
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer update && composer install
WORKDIR /var/www/html/Source
WORKDIR /var/www/html
RUN Config/vendor/bin/phpunit .\Tests --coverage-clover coverage.xml
Loading…
Cancel
Save