forked from glpi-project/glpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (80 loc) · 1.87 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
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
language: php
sudo: required
dist: trusty
env:
- DB=mysql
before_script:
- phpenv config-rm xdebug.ini || true
- ./tests/LDAP/ldap_run.sh
- composer self-update
- sed -e '/"php":/d' -i composer.json
- rm -f composer.lock
- cp tests/travis.parameters.yaml tests/parameters.yaml
- nvm install --lts=dubnium # update node to dubnium LTS version (node v10.x + npm v6.9.0)
- bin/console dependencies install --ci
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
- mysql -u root -e 'create database glpitest;'
- bin/console glpi:database:install --config-dir=./tests --no-interaction --db-name=glpitest --db-user=root
- ./tests/LDAP/ldap_fixtures.sh > /dev/null
script:
- mysql -u root -e 'select version();'
- composer testldap
#note: default maria version is 5.5 for all main php versions list exept nightly
matrix:
include:
- php: 7.0
addons:
mariadb: 10.2
apt:
packages:
- ldap-utils
- slapd
- php: 7.1
addons:
mariadb: 10.1
apt:
packages:
- ldap-utils
- slapd
- php: 7.2
addons:
apt:
packages:
- ldap-utils
- slapd
- php: 7.3
addons:
apt:
packages:
- ldap-utils
- slapd
- php: 7.4snapshot
addons:
apt:
packages:
- ldap-utils
- slapd
- php: nightly
addons:
apt:
packages:
- ldap-utils
- slapd
allow_failures:
- php: nightly
- php: 7.4snapshot
cache:
directories:
- $HOME/.composer/cache
notifications:
irc:
channels:
- "chat.freenode.org#glpi"
on_success: change
on_failure: always
use_notice: true
skip_join: true
#exclude old branches, without tests
branches:
except:
- /^0\..*$/