-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 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
sudo: false
language: php
php:
- 5.4
- 5.5
- 5.6
addons:
apt:
packages:
- libapache2-mod-php5
- php5-cli
- php5-mysql
- php5-xmlrpc
- php5-xsl
- php5-ldap
- php5-json
- php5-intl
- php5-imap
- php5-gd
- php5-curl
- ant
- xsltproc
before_install:
- cd ..
- git clone git://github.com/glpi-project/glpi.git glpi
- mysql -u root -e "SET PASSWORD FOR 'travis'@'localhost' = PASSWORD('travis')"
- mysql -u root -e "GRANT ALL PRIVILEGES ON glpi.* TO 'travis'@'localhost';"
- mysql -u root -e "FLUSH PRIVILEGES;"
- echo '<?php class DB extends DBmysql {var $dbhost = "localhost";var $dbuser = "travis";var $dbpassword= "travis";var $dbdefault = "glpi";}' > glpi/config/config_db.php
- mv -f fusioninventory-for-glpi glpi/plugins/fusioninventory
- composer self-update
- ant -Dclearsavepoint='true' -Dbasedir=. -f ./glpi/plugins/fusioninventory/phpunit/build.xml composer
install:
- composer require satooshi/php-coveralls
script: ant -Dclearsavepoint='true' -Dbasedir=. -f ./glpi/plugins/fusioninventory/phpunit/build.xml phpunit.all
after_script:
- cp -fr build glpi/plugins/fusioninventory/
- cd glpi/plugins/fusioninventory/
- composer require satooshi/php-coveralls
- php vendor/bin/coveralls -v