forked from openeuropa/oe_editorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
102 lines (92 loc) · 2.89 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
clone:
git:
image: registry.fpfis.eu/drone-plugins/git:next
when:
event: [ push, pull_request, tag ]
git:
image: registry.fpfis.eu/drone-plugins/git
when:
event: [ deployment ]
workspace:
base: /test
path: oe_editorial
services:
web:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment: &web-environment
- DOCUMENT_ROOT=/test/oe_editorial
- POETRY_IDENTIFIER_SEQUENCE=NEXT_EUROPA_COUNTER
- POETRY_SERVICE_ENDPOINT=http://web:8080/build/poetry-mock/wsdl
- POETRY_SERVICE_USERNAME=admin
- POETRY_SERVICE_PASSWORD=admin
- POETRY_NOTIFICATION_USERNAME=admin
- POETRY_NOTIFICATION_PASSWORD=admin
mysql:
image: registry.fpfis.eu/fpfis/sql:percona-5.7
command: --innodb-log-file-size=1G --max_allowed_packet=1G --innodb-buffer-pool-size=512M --wait_timeout=3000 --net_write_timeout=3000 --log_error_verbosity=3
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
selenium:
# Newer Selenium Chrome images are not supported at the moment by behat/mink-selenium2-driver.
image: registry.fpfis.eu/fpfis/selenium:standalone-chrome-3.141.59-oxygen
shm_size: 2g
environment:
- DISPLAY=:99
- SE_OPTS=-debug
- SCREEN_WIDTH=1280
- SCREEN_HEIGHT=800
- NODE_MAX_INSTANCES=5
- NODE_MAX_SESSION=5
pipeline:
composer-install:
group: prepare
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
volumes:
- /cache/${DRONE_REPO_NAME}:/cache
commands:
- composer install --ansi --no-suggest --no-progress
composer-update-lowest:
group: post-prepare
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
volumes:
- /cache/${DRONE_REPO_NAME}:/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 update --prefer-lowest --prefer-stable --ansi --no-suggest --no-progress --no-interaction
when:
matrix:
COMPOSER_BOUNDARY: lowest
site-install:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- ./vendor/bin/run drupal:site-install
grumphp:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- ./vendor/bin/grumphp run
phpunit:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment: *web-environment
commands:
- ./vendor/bin/phpunit
behat:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment: *web-environment
commands:
- ./vendor/bin/behat --strict
debug:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- ./vendor/bin/drush ws --count 500
when:
status: failure
matrix:
COMPOSER_BOUNDARY:
- lowest
- highest
PHP_VERSION:
- 7.3