forked from openeuropa/oe_webtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
84 lines (75 loc) · 1.96 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
workspace:
base: /test
path: oe_webtools
services:
web:
image: fpfis/httpd-php-ci:7.1
environment:
- DOCUMENT_ROOT=/test/oe_webtools
mysql:
image: percona/percona-server:5.6
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
selenium:
# Newer Selenium Chrome images are not supported at the moment by behat/mink-selenium2-driver.
image: selenium/standalone-chrome-debug:3.141.59-oxygen
shm_size: 2g
environment:
- DISPLAY=:99
- SE_OPTS=-debug
- SCREEN_WIDTH=1280
- SCREEN_HEIGHT=800
pipeline:
composer-install-lowest:
group: prepare
image: fpfis/httpd-php-ci:7.1
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 --prefer-stable --ansi --no-suggest --no-progress
when:
matrix:
COMPOSER_BOUNDARY: lowest
composer-install-highest:
group: prepare
image: fpfis/httpd-php-ci:7.1
volumes:
- /cache:/cache
commands:
- composer install --ansi --no-suggest --no-progress
when:
matrix:
COMPOSER_BOUNDARY: highest
site-install:
image: fpfis/httpd-php-ci:7.1
commands:
- ./vendor/bin/run drupal:site-install
test-grumphp:
group: test
image: fpfis/httpd-php-ci:7.1
commands:
- ./vendor/bin/grumphp run
test-phpunit:
group: test
image: fpfis/httpd-php-ci:7.1
commands:
- ./vendor/bin/phpunit
test-behat:
group: test
image: fpfis/httpd-php-ci:7.1
commands:
- ./vendor/bin/behat --strict
- ./vendor/bin/behat --strict --profile=static
debug:
image: fpfis/httpd-php-ci:7.1
commands:
- ./vendor/bin/drush ws --count 500
when:
status: failure
matrix:
COMPOSER_BOUNDARY:
- lowest
- highest