forked from openeuropa/oe_media
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
81 lines (74 loc) · 2.11 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
workspace:
base: /tmp
path: html
services:
web:
image: fpfis/httpd-php-dev:7.1
environment:
- HOME=/tmp
- DOCUMENT_ROOT=/tmp/html
mysql:
image: percona/percona-server:5.6
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
selenium:
image: selenium/standalone-chrome:3
environment:
- DISPLAY=:99
- SE_OPTS=-debug
- SCREEN_WIDTH=1280
- SCREEN_HEIGHT=800
- VNC_NO_PASSWORD=1
pipeline:
composer-install:
group: prepare
image: fpfis/httpd-php-dev: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-dev:7.1
volumes:
- /cache:/cache
commands:
- composer install --ansi --no-suggest --no-progress
when:
matrix:
COMPOSER_BOUNDARY: highest
site-install:
image: fpfis/httpd-php-dev:7.1
commands:
- ./vendor/bin/run drupal:site-install
grumphp:
group: test
image: fpfis/httpd-php-dev:7.1
commands:
- ./vendor/bin/grumphp run
phpunit:
group: test
image: fpfis/httpd-php-dev:7.1
commands:
- chown -R www-data /tmp/html/build/sites
- find /tmp/html/build/sites/default/files -type d -exec chmod 775 {} \;
- find /tmp/html/build/sites/default/files -type f -exec chmod 664 {} \;
- su -s /bin/bash -c "./vendor/bin/phpunit" www-data
behat:
group: test
image: fpfis/httpd-php-dev:7.1
commands:
- chown -R www-data /tmp/html/build/sites
- find /tmp/html/build/sites/default/files -type d -exec chmod 775 {} \;
- find /tmp/html/build/sites/default/files -type f -exec chmod 664 {} \;
- su -s /bin/bash -c "./vendor/bin/behat --strict" www-data
matrix:
COMPOSER_BOUNDARY:
- lowest
- highest