-
Notifications
You must be signed in to change notification settings - Fork 8
/
.drone.yml
92 lines (82 loc) · 2.45 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
# ==============================================================================
# Pull request clone ===========================================================
# ==============================================================================
# Use plugin to checkout pull requests for caching issue:
# https://github.com/drone/drone/issues/2390
# ==============================================================================
clone:
git:
image: plugins/git:next
pull: true
workspace:
base: /test
path: ec_europa
services:
web:
image: fpfis/httpd-php-ci:${PHP_VERSION=5.6}
environment:
- DOCUMENT_ROOT=/test/ec_europa
pull: true
mysql:
image: percona/percona-server:5.6
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
pipeline:
composer-install-lowest:
group: prepare
image: fpfis/httpd-php-ci:${PHP_VERSION=5.6}
volumes:
- /cache:/cache
commands:
# Perform a composer install to work around an issue where an update
# without a lock file present affects the resolving of dependencies.
# Todo: Remove the `composer install` when the composer bug is fixed.
# Ref. https://github.com/composer/composer/issues/7542
# Ref. https://webgate.ec.europa.eu/CITnet/jira/browse/OPENEUROPA-1234
- composer install --no-ansi --no-suggest --no-progress
- composer update --prefer-lowest --no-ansi --no-suggest --no-progress
when:
matrix:
COMPOSER_BOUNDARY: lowest
composer-install-highest:
group: prepare
image: fpfis/httpd-php-ci:${PHP_VERSION=5.6}
volumes:
- /cache:/cache
commands:
- composer install --no-ansi --no-suggest --no-progress
when:
matrix:
COMPOSER_BOUNDARY: highest
site-install:
image: fpfis/httpd-php-ci:${PHP_VERSION=5.6}
commands:
- ./vendor/bin/taskman drupal:site-install
grumphp:
group: test
image: fpfis/httpd-php-ci:${PHP_VERSION=5.6}
commands:
- ./vendor/bin/grumphp run --no-ansi --no-interaction
before-release:
image: fpfis/httpd-php-ci:7.1
commands:
- ./vendor/bin/taskman release:create-archive --tag=${DRONE_TAG}
when:
event: tag
github-release:
image: plugins/github-release
secrets: [ github_token ]
files: ec_europa-${DRONE_TAG}.tar.gz
when:
event: tag
matrix:
COMPOSER_BOUNDARY: highest
matrix:
PHP_VERSION:
- 5.6
- 7.1
- 7.2
- 7.3
COMPOSER_BOUNDARY:
- lowest
- highest