-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
100 lines (89 loc) · 2.12 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
workspace:
base: /test
path: oe_theme
services:
web:
image: fpfis/httpd-php-ci:${PHP_VERSION}
environment:
- DOCUMENT_ROOT=/test/oe_theme
mysql:
# @todo: change this back to percona as soon as FPFISSUPP-8617 is resolved.
# image: percona/percona-server:5.6
image: mariadb
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
sparql:
image: openeuropa/triple-store-dev
pull: true
environment:
- SPARQL_UPDATE=true
- DBA_PASSWORD=dba
selenium:
image: selenium/standalone-chrome:3.11
environment:
- DISPLAY=:99
- SE_OPTS=-debug
pipeline:
npm-build:
group: prepare
image: node:9.5.0
commands:
- npm install --unsafe-perm
- NODE_ENV=production npm run build
composer-install:
group: prepare
image: fpfis/httpd-php-ci:${PHP_VERSION}
volumes:
- /cache:/cache
commands:
- composer install --ansi --no-suggest --no-progress
composer-update-lowest:
group: post-prepare
image: fpfis/httpd-php-ci:${PHP_VERSION}
volumes:
- /cache:/cache
commands:
- composer update --prefer-lowest --ansi --no-suggest --no-progress
when:
matrix:
COMPOSER_BOUNDARY: lowest
site-install:
image: fpfis/httpd-php-ci:${PHP_VERSION}
commands:
- ./vendor/bin/run drupal:site-install
grumphp:
group: test
image: fpfis/httpd-php-ci:${PHP_VERSION}
commands:
- ./vendor/bin/grumphp run
phpunit:
group: test
image: fpfis/httpd-php-ci:${PHP_VERSION}
commands:
- ./vendor/bin/phpunit
behat:
group: test
image: fpfis/httpd-php-ci:${PHP_VERSION}
commands:
- ./vendor/bin/behat --strict
before-release:
image: fpfis/httpd-php-dev:${PHP_VERSION}
commands:
- ./vendor/bin/run release:create-archive --tag=${DRONE_TAG}
when:
event: tag
github-release:
image: plugins/github-release
secrets: [ github_token ]
files: oe_theme-${DRONE_TAG}.tar.gz
when:
event: tag
matrix:
COMPOSER_BOUNDARY: highest
matrix:
COMPOSER_BOUNDARY:
- lowest
- highest
PHP_VERSION:
- 7.2
- 7.3