Go back to old version
continuous-integration/drone/push Build encountered an error Details

unit_test
dorian.hodin 2 years ago
parent 0e1b927405
commit c29e64b212

@ -8,11 +8,11 @@ trigger:
steps: steps:
- name: app-image - name: coverage-image
image: plugins/docker image: plugins/docker
settings: settings:
dockerfile: ./Code/Dockerfile dockerfile: ./Source/Tests/Dockerfile
context: ./Code/Source context: Source/Tests
registry: hub.codefirst.iut.uca.fr registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/dorian.hodin/sae4.01_formulaire repo: hub.codefirst.iut.uca.fr/dorian.hodin/sae4.01_formulaire
username: username:
@ -20,16 +20,16 @@ steps:
password: password:
from_secret: SECRET_PASSWD from_secret: SECRET_PASSWD
# conteneur deployment #conteneur deployment
- name: deploy-app - name: deploy_coverage
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment: environment:
IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/sae4.01_formulaire:latest IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/sae4.01_formulaire:latest
CONTAINERNAME: deploy-app CONTAINERNAME: coverage-image
COMMAND: create COMMAND: create
OVERWRITE: true OVERWRITE: true
ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal
depends_on: [ app-image ] depends_on: [ coverage-image ]
- name: setup_PHP_for_SonarQube - name: setup_PHP_for_SonarQube

4
.gitignore vendored

@ -1,2 +1,2 @@
/Code/Source/Config/vendor/ /Source/.phpunit.cache/
/Code/Source/.phpunit.cache/ /Source/Config/vendor/

@ -1,9 +0,0 @@
FROM php:8.1-apache
RUN apt-get upgrade -y && apt-get update -y && apt-get install -y git zip
COPY ./Source /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 --prefer-source ../.
WORKDIR /var/www/html
RUN Config/vendor/bin/phpunit .\Tests --coverage-clover coverage.xml

@ -1343,16 +1343,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "10.0.16", "version": "10.0.17",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "07d386a11ac7094032900f07cada1c8975d16607" "reference": "b75eddcabca052312ae38c8a2bc69ff1a7b89b77"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/07d386a11ac7094032900f07cada1c8975d16607", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b75eddcabca052312ae38c8a2bc69ff1a7b89b77",
"reference": "07d386a11ac7094032900f07cada1c8975d16607", "reference": "b75eddcabca052312ae38c8a2bc69ff1a7b89b77",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1423,7 +1423,8 @@
], ],
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.0.16" "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.0.17"
}, },
"funding": [ "funding": [
{ {
@ -1439,7 +1440,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-03-13T09:02:40+00:00" "time": "2023-03-20T14:42:33+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",

@ -0,0 +1,2 @@
FROM php:8.1-apache
COPY ./coverage.xml /var/www/html

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 125 KiB

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Loading…
Cancel
Save