-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
57 lines (49 loc) · 1.25 KB
/
.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
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
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
env:
global:
- DB=mysql
matrix:
- GLPIVER=9.4/bugfixes
- GLPIVER=9.3/bugfixes
- GLPIVER=master
before_script:
- composer self-update
- composer require --dev atoum/atoum
- git clone --depth=1 https://github.com/glpi-project/glpi -b $GLPIVER ../glpi && cd ../glpi
- composer install --no-dev
- mysql -u root -e 'create database glpitest;'
# Both 9.3 and 9.4:
- if [[ -f "scripts/cliinstall.php" ]]; then php scripts/cliinstall.php --db=glpitest --user=root --tests; else bin/console glpi:database:install --config-dir=./tests --no-interaction --db-name=glpitest --db-user=root; fi
- mv ../yagp plugins/yagp
- cd plugins/yagp
- composer install -o
script:
- vendor/bin/robo --no-interaction code:cs
- mysql -u root -e 'select version();'
- ./vendor/bin/atoum -bf tests/bootstrap.php -d tests/units/
matrix:
exclude:
- php: 5.6
env: GLPIVER=master
- php: 5.6
env: GLPIVER=9.4/bugfixes
allow_failures:
- php: nightly
cache:
directories:
- $HOME/.composer/cache
#notifications:
# irc:
# channels:
# - "irc.freenode.org#channel"
# on_success: change
# on_failure: always
# use_notice: true
# skip_join: true