-
Notifications
You must be signed in to change notification settings - Fork 9
/
.drone.jsonnet
43 lines (42 loc) · 1.44 KB
/
.drone.jsonnet
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
local Pipeline(omekaVersion, phpVersion, dbImage) = {
kind: 'pipeline',
type: 'docker',
name: 'omeka:' + omekaVersion + ' php:' + phpVersion + ' ' + dbImage,
workspace: {
path: 'omeka-s/modules/Search',
},
steps: [
{
name: 'test',
image: 'git.biblibre.com/omeka-s/omeka-s-ci:' + omekaVersion + '-php' + phpVersion,
commands: [
'cp -rT /usr/src/omeka-s ../..',
"echo 'host = \"db\"\\nuser = \"root\"\\npassword = \"root\"\\ndbname = \"omeka_test\"\\n' > ../../application/test/config/database.ini",
'bash -c "cd ../.. && php /usr/local/libexec/wait-for-db.php"',
'../../vendor/bin/phpunit',
'../../node_modules/.bin/gulp test:module:cs',
],
},
],
services: [
{
name: 'db',
image: dbImage,
environment: {
MYSQL_ROOT_PASSWORD: 'root',
MYSQL_DATABASE: 'omeka_test',
},
},
],
};
[
Pipeline('3.0.2', '7.4', 'mariadb:10.6'),
Pipeline('3.1.2', '8.0', 'mariadb:10.6'),
Pipeline('3.2.3', '8.0', 'mariadb:10.6'),
Pipeline('4.0.4', '8.0', 'mariadb:10.6'),
Pipeline('4.0.4', '8.1', 'mariadb:10.6'),
Pipeline('4.0.4', '8.2', 'mariadb:10.6'),
Pipeline('4.1.1', '8.0', 'mariadb:10.6'),
Pipeline('4.1.1', '8.1', 'mariadb:10.6'),
Pipeline('4.1.1', '8.2', 'mariadb:10.6'),
]