2021-07-23 03:18:33 +02:00
|
|
|
---
|
|
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: default
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: install dependencies
|
|
|
|
|
image: composer
|
|
|
|
|
volumes:
|
|
|
|
|
- name: composer-cache
|
|
|
|
|
path: /tmp/cache
|
|
|
|
|
environment:
|
|
|
|
|
COMPOSER_CACHE_DIR: /tmp/cache
|
|
|
|
|
commands:
|
2022-01-02 03:31:18 +01:00
|
|
|
- composer install --no-progress --no-interaction --ignore-platform-reqs
|
2021-07-23 03:18:33 +02:00
|
|
|
|
|
|
|
|
- name: run unit tests
|
2021-09-12 21:33:35 +02:00
|
|
|
image: php:7.4
|
2021-07-23 03:18:33 +02:00
|
|
|
commands:
|
|
|
|
|
- vendor/bin/phpunit -c phpunit.xml
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
- name: composer-cache
|
|
|
|
|
host:
|
|
|
|
|
path: /tmp/drone/composer-cache
|