-
Notifications
You must be signed in to change notification settings - Fork 4
/
.drone.yml
51 lines (44 loc) · 1.08 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
workspace:
base: /test
path: toolkit
matrix:
FPFIS_PHP_VERSION:
- 56
- 71
services:
itop:
image: vbkunin/itop:2.3.4
commands:
- /run.sh &
- mkdir /app/toolkit/
- cp tests/itop_toolkit/* /app/toolkit/
- cd /app/toolkit/
# Wait for mysql fully started
- sleep 10
- /usr/bin/php /app/toolkit/unattended_install.php default-params.xml
- chmod 775 -R /app/conf
- sleep 3600
pipeline:
prepare:
# Use php${FPFIS_PHP_VERSION} image
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
commands:
- php --version
- composer install
test-composer-deps:
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
commands:
- vendor/bin/security-checker security:check
# Run parallel tests ( groups ) :
test-phpunit:
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
group: test
environment:
- ITOP_URL=http://itop:80
commands:
- ./vendor/bin/phpunit
test-phpcs:
image: fpfis/httpd-php-dev:${PHP_VERSION=5.6}
group: test
commands:
- ./vendor/bin/phpcs -p