forked from pluginsGLPI/fields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 977 Bytes
/
.travis.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
language: php
php:
- 7.2
- 7.4
services:
- mysql
env:
global:
- DB=mysql
matrix:
- GLPIVER=9.5/bugfixes
before_script:
- composer self-update
- git clone --depth=1 https://github.com/glpi-project/glpi -b $GLPIVER ../glpi && cd ../glpi
- bin/console dependencies install
- mysql -u root -e 'create database glpitest;'
- bin/console glpi:database:install --config-dir=./tests --no-interaction --db-name=glpitest --db-host=127.0.0.1 --db-user=root
- mv ../fields plugins/fields
- cd plugins/fields
- composer install --optimize-autoloader --prefer-dist --no-interaction --no-progress --no-suggest
script:
- vendor/bin/robo --no-interaction code:cs --strict
- mysql -u root -e 'select version();'
- php vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/units
cache:
directories:
- $HOME/.composer/cache