forked from glpi-project/glpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (58 loc) · 1.41 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
language: php
sudo: required
services:
- mysql
before_script:
- phpenv config-rm xdebug.ini || true
- ./tests/LDAP/ldap_run.sh
- composer self-update
- rm -f composer.lock
- composer config --unset platform
- nvm install --lts=dubnium # update node to dubnium LTS version (node v10.x + npm v6.9.0)
- bin/console dependencies install --composer-options="--prefer-dist --no-progress"
- 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
matrix:
include:
- php: 7.2
dist: xenial
addons:
apt:
packages:
- ldap-utils
- slapd
hosts:
- openldap
- php: 7.4
dist: bionic
addons:
apt:
packages:
- ldap-utils
- slapd
hosts:
- openldap
- php: nightly
dist: bionic
addons:
apt:
packages:
- ldap-utils
- slapd
hosts:
- openldap
allow_failures:
- php: nightly
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm/_cacache
#exclude old branches, without tests
branches:
except:
- /^0\..*$/