drone pipeline: install dev dependencies for unit tests

This commit is contained in:
Lexi / Zoe 2020-06-28 17:25:21 +02:00
parent 4da6e4b064
commit 30670338ce
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 16 additions and 6 deletions

View File

@ -4,7 +4,22 @@ type: docker
name: default
steps:
- name: install
- name: install dependencies
image: composer
volumes:
- name: composer-cache
path: /tmp/cache
environment:
COMPOSER_CACHE_DIR: /tmp/cache
commands:
- composer install --no-progress --no-interaction
- name: run unit tests
image: php:7.4
commands:
- vendor/bin/phpunit -c phpunit.xml
- name: remove dev dependencies
image: composer
volumes:
- name: composer-cache
@ -14,11 +29,6 @@ steps:
commands:
- composer install --no-progress --no-interaction --no-dev --optimize-autoloader
- name: unit tests
image: php:7.4
commands:
- vendor/bin/phpunit -c phpunit.xml
- name: build image
image: docker
volumes: