forked from openeuropa/oe_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
167 lines (154 loc) · 4.93 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
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_theme
services:
web:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment:
- COMPOSERVER=--2
- DOCUMENT_ROOT=/test/oe_theme
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
- MYSQL_DATABASE=drupal
sparql:
image: registry.fpfis.eu/openeuropa/triple-store-dev
pull: true
environment:
- SPARQL_UPDATE=true
- DBA_PASSWORD=dba
selenium:
image: registry.fpfis.eu/fpfis/selenium:standalone-chrome-4.1.3-20220405
environment:
- DISPLAY=:99
- SCREEN_WIDTH=1600
- SCREEN_HEIGHT=1200
- NODE_MAX_INSTANCES=5
- NODE_MAX_SESSION=5
pipeline:
npm-build:
group: prepare
image: registry.fpfis.eu/fpfis/node:12.21.0
commands:
- npm install --unsafe-perm
- NODE_ENV=production npm run build
composer-install-highest:
group: post-prepare
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
volumes:
- /cache:/cache
commands:
- composer self-update --2
- composer install --ansi --no-progress
when:
matrix:
COMPOSER_BOUNDARY: highest
composer-update-lowest:
group: post-prepare
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
volumes:
- /cache:/cache
commands:
- composer self-update --2
- composer update --prefer-lowest --ansi --no-progress
when:
event:
exclude: tag
matrix:
COMPOSER_BOUNDARY: lowest
site-install:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- while ! mysqladmin ping -h mysql --silent; do sleep 1; done
- ./vendor/bin/run drupal:site-install
when:
event:
exclude: tag
matrix:
TYPE: behat
grumphp:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- ./vendor/bin/grumphp run
when:
event:
exclude: tag
matrix:
COMPOSER_BOUNDARY: highest
phpunit:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- ./vendor/bin/run drupal:site-setup
- ./vendor/bin/phpunit --group $BATCH
when:
event:
exclude: tag
matrix:
TYPE: phpunit
behat:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
commands:
- ./vendor/bin/behat --strict --tags="~@wip"
when:
event:
exclude: tag
matrix:
TYPE: behat
before-release:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-dev
commands:
- apt-get update
- apt-get install zip
- git config --global --add safe.directory /test/oe_theme
- ./vendor/bin/run release:create-archive --tag=${DRONE_TAG}
- ./vendor/bin/run release:create-archive --tag=${DRONE_TAG} --zip
when:
event:
include: tag
matrix:
COMPOSER_BOUNDARY: highest
PHP_VERSION: "8.0"
github-release:
image: registry.fpfis.eu/drone-plugins/github-release
secrets: [ github_token ]
files:
- oe_theme-${DRONE_TAG}.tar.gz
- oe_theme-${DRONE_TAG}.zip
when:
event:
include: tag
matrix:
COMPOSER_BOUNDARY: highest
PHP_VERSION: "8.0"
matrix:
include:
- { PHP_VERSION: 8.0, COMPOSER_BOUNDARY: lowest, TYPE: behat }
- { PHP_VERSION: 8.0, COMPOSER_BOUNDARY: lowest, TYPE: phpunit, BATCH: batch1 }
- { PHP_VERSION: 8.0, COMPOSER_BOUNDARY: lowest, TYPE: phpunit, BATCH: batch2 }
- { PHP_VERSION: 8.0, COMPOSER_BOUNDARY: lowest, TYPE: phpunit, BATCH: batch3 }
- { PHP_VERSION: 8.1, COMPOSER_BOUNDARY: lowest, TYPE: behat }
- { PHP_VERSION: 8.1, COMPOSER_BOUNDARY: lowest, TYPE: phpunit, BATCH: batch1 }
- { PHP_VERSION: 8.1, COMPOSER_BOUNDARY: lowest, TYPE: phpunit, BATCH: batch2 }
- { PHP_VERSION: 8.1, COMPOSER_BOUNDARY: lowest, TYPE: phpunit, BATCH: batch3 }
- { PHP_VERSION: 8.0, COMPOSER_BOUNDARY: highest, TYPE: behat }
- { PHP_VERSION: 8.0, COMPOSER_BOUNDARY: highest, TYPE: phpunit, BATCH: batch1 }
- { PHP_VERSION: 8.0, COMPOSER_BOUNDARY: highest, TYPE: phpunit, BATCH: batch2 }
- { PHP_VERSION: 8.0, COMPOSER_BOUNDARY: highest, TYPE: phpunit, BATCH: batch3 }
- { PHP_VERSION: 8.1, COMPOSER_BOUNDARY: highest, TYPE: behat }
- { PHP_VERSION: 8.1, COMPOSER_BOUNDARY: highest, TYPE: phpunit, BATCH: batch1 }
- { PHP_VERSION: 8.1, COMPOSER_BOUNDARY: highest, TYPE: phpunit, BATCH: batch2 }
- { PHP_VERSION: 8.1, COMPOSER_BOUNDARY: highest, TYPE: phpunit, BATCH: batch3 }