Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #98: Improve drone file and add php 7.2 on the matrix. #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 15 additions & 20 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,47 @@ workspace:

services:
web:
image: ${IMAGE_PHP=fpfis/httpd-php-dev:5.6}
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
environment:
- DOCUMENT_ROOT=/test/task-runner

pipeline:
composer-install-lowest:
composer-install:
group: prepare
image: ${IMAGE_PHP=fpfis/httpd-php-dev:5.6}
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
volumes:
- /cache:/cache
commands:
# @todo remove "composer install" step once the following issue is fixed.
# @link https://webgate.ec.europa.eu/CITnet/jira/browse/OPENEUROPA-1234
- composer install --ansi --no-suggest --no-progress
- composer update --prefer-lowest --ansi --no-suggest --no-progress
when:
matrix:
COMPOSER_BOUNDARY: lowest

composer-install-highest:
group: prepare
image: ${IMAGE_PHP=fpfis/httpd-php-dev:5.6}
composer-update-lowest:
group: post-prepare
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
volumes:
- /cache:/cache
- /cache:/cache
commands:
- composer install --ansi --no-suggest --no-progress
- composer update --prefer-lowest --ansi --no-suggest --no-progress
when:
matrix:
COMPOSER_BOUNDARY: highest
COMPOSER_BOUNDARY: lowest

grumphp:
group: test
image: ${IMAGE_PHP=fpfis/httpd-php-dev:5.6}
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
commands:
- ./vendor/bin/grumphp run

phpunit:
group: test
image: ${IMAGE_PHP=fpfis/httpd-php-dev:5.6}
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
commands:
- ./vendor/bin/phpunit

matrix:
IMAGE_PHP:
- fpfis/httpd-php-dev:5.6
- fpfis/httpd-php-dev:7.1
PHP_VERSION:
- 5.6
- 7.1
- 7.2
COMPOSER_BOUNDARY:
- lowest
- highest