forked from openeuropa/drupal-site-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
102 lines (93 loc) · 2.89 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
workspace:
base: /test
path: drupal-site-template
services:
web:
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
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: 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
selenium:
image: registry.fpfis.eu/fpfis/selenium:standalone-chrome-3.11
environment:
- DISPLAY=:99
- SE_OPTS=-debug
pipeline:
# Remove the cache for internal use.
clean-repo:
group: init
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment: *env
volumes:
- /cache:/cache
commands:
- rm -rf /cache/composer/vcs/-test-drupal-site-template
when:
matrix:
PHP_VERSION: 7.2
# Create project command.
composer-create-project:
group: create-project
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
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: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment: *env
commands:
- cd digit-drupal-site-test-reference
- git init
# Install the drupal site.
site-install:
group: installation-site
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
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: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment: *env
commands:
- cd digit-drupal-site-test-reference
- ./vendor/bin/drush cex -y
# Run grumphp tests.
test-grumphp:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment: *env
commands:
- cd digit-drupal-site-test-reference
- ./vendor/bin/grumphp run
# Run behat tests.
test-behat:
group: test
image: registry.fpfis.eu/fpfis/httpd-php:${PHP_VERSION}-ci
environment: *env
commands:
- cd digit-drupal-site-test-reference
- ./vendor/bin/behat --strict
matrix:
PHP_VERSION:
- 7.2
- 7.3