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

4
.gitignore vendored

@ -1,2 +1,2 @@
/Code/Source/Config/vendor/
/Code/Source/.phpunit.cache/
/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",
"version": "10.0.16",
"version": "10.0.17",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "07d386a11ac7094032900f07cada1c8975d16607"
"reference": "b75eddcabca052312ae38c8a2bc69ff1a7b89b77"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/07d386a11ac7094032900f07cada1c8975d16607",
"reference": "07d386a11ac7094032900f07cada1c8975d16607",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b75eddcabca052312ae38c8a2bc69ff1a7b89b77",
"reference": "b75eddcabca052312ae38c8a2bc69ff1a7b89b77",
"shasum": ""
},
"require": {
@ -1423,7 +1423,8 @@
],
"support": {
"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": [
{
@ -1439,7 +1440,7 @@
"type": "tidelift"
}
],
"time": "2023-03-13T09:02:40+00:00"
"time": "2023-03-20T14:42:33+00:00"
},
{
"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