forked from openeuropa/drupal-site-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
101 lines (92 loc) · 2.57 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
workspace:
base: /test
path: drupal-site-template
services:
web:
image: fpfis/httpd-php-ci:${PHP_VERSION=7.2}
environment: &env
- DOCUMENT_ROOT=/test/drupal-site-template
- DRUPAL_DATABASE_NAME=digit_drupal_site_test_reference
- DRUPAL_DATABASE_USERNAME=root
- DRUPAL_DATABASE_PASSWORD=
- DRUPAL_DATABASE_PREFIX=
- DRUPAL_DATABASE_HOST=mysql
- DRUPAL_DATABASE_PORT=3306
- DRUPAL_ACCOUNT_USERNAME=admin
- DRUPAL_ACCOUNT_PASSWORD=admin
- DRUPAL_BASE_URL=http://web:8080/digit-drupal-site-test-reference/web
mysql:
image: percona/percona-server:5.6
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
selenium:
image: selenium/standalone-chrome:3.11
environment:
- DISPLAY=:99
- SE_OPTS=-debug
pipeline:
# Remove the cache for internal use.
clean-repo:
group: init
image: fpfis/httpd-php-ci:${PHP_VERSION=7.2}
environment: *env
volumes:
- /cache:/cache
commands:
- rm -rf /cache/composer/vcs/-test-drupal-site-template
when:
matrix:
PHP_VERSION: 7.1
# Create project command.
composer-create-project:
group: create-project
image: fpfis/httpd-php-ci:${PHP_VERSION=7.2}
environment: *env
volumes:
- /cache:/cache
commands:
- composer create-project --repository-url=packages.json --ansi --no-progress --no-interaction openeuropa/drupal-site-template digit-drupal-site-test-reference
# Initialize git.
git-init:
group: git-init
image: fpfis/httpd-php-ci:7.1
environment: *env
commands:
- cd digit-drupal-site-test-reference
- git init
# Install the drupal site.
site-install:
group: installation-site
image: fpfis/httpd-php-ci:${PHP_VERSION=7.2}
environment: *env
commands:
- cd digit-drupal-site-test-reference
- ./vendor/bin/run toolkit:install-clean
# Export of the configuration.
export-config:
group: export-config
image: fpfis/httpd-php-ci:${PHP_VERSION=7.2}
environment: *env
commands:
- cd digit-drupal-site-test-reference
- ./vendor/bin/drush cex -y
# Run grumphp tests.
test-grumphp:
group: test
image: fpfis/httpd-php-ci:${PHP_VERSION=7.2}
environment: *env
commands:
- cd digit-drupal-site-test-reference
- ./vendor/bin/grumphp run
# Run behat tests.
test-behat:
group: test
image: fpfis/httpd-php-ci:${PHP_VERSION=7.2}
environment: *env
commands:
- cd digit-drupal-site-test-reference
- ./vendor/bin/behat --strict
matrix:
PHP_VERSION:
- 7.1
- 7.2