forked from ddurieux/glpi_monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.09 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
sudo: false
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
addons:
apt:
packages:
- ant
- xsltproc
before_install:
- cd ..
- git clone git://github.com/glpi-project/glpi.git glpi
- cd glpi
- git checkout -b 0.90/bugfixes origin/0.90/bugfixes
- cd ..
- 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 glpi_monitoring glpi/plugins/monitoring
- ant -Dclearsavepoint='true' -Dbasedir=. -f ./glpi/plugins/monitoring/phpunit/build.xml composer
install:
- composer require satooshi/php-coveralls
script: ant -Dclearsavepoint='true' -Dbasedir=. -f ./glpi/plugins/monitoring/phpunit/build.xml phpunit.all
after_script:
- cp -fr build glpi/plugins/monitoring/
- cd glpi/plugins/monitoring/
- composer require satooshi/php-coveralls
- php vendor/bin/coveralls -v