Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is failing Details

master
Louis DUFOUR 1 year ago
parent 14566ff3a0
commit d22bb6dc71

@ -1,30 +1,14 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: projetDeCédric name: depotDeCedric
trigger: trigger:
event: event:
- push - push
image: php:8.0 steps:
- name: test
cache: image: jitesoft/phpunit:latest
paths: commands:
- vendor/ - composer install
- XDEBUG_MODE=coverage phpunit --coverage-clover=coverage.xml
before_script:
- apt-get update -yqq
- apt-get install -yqq git unzip
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php --install-dir=/usr/local/bin --filename=composer
- composer install --prefer-dist --no-ansi --no-interaction --no-progress
stages:
- test
run_tests:
stage: test
script:
- echo "Début des tests unitaires..."
- vendor/bin/phpunit common/Tests
- if [ $? -eq 0 ]; then echo "Tous les tests ont réussi!"; else echo "Certains tests ont échoué!"; exit 1; fi

Loading…
Cancel
Save