Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
14566ff3a0
commit
d22bb6dc71
@ -1,30 +1,14 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: projetDeCédric
|
||||
name: depotDeCedric
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
image: php:8.0
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- vendor/
|
||||
|
||||
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
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: jitesoft/phpunit:latest
|
||||
commands:
|
||||
- composer install
|
||||
- XDEBUG_MODE=coverage phpunit --coverage-clover=coverage.xml
|
||||
|
Loading…
Reference in new issue