-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4a8e40
commit d5ae794
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
language: php | ||
|
||
env: | ||
global: | ||
- GLPI_SOURCE="https://github.com/glpi-project/glpi" | ||
- PHPUNIT_ARGS="--verbose --debug" | ||
- CS=7.2 | ||
matrix: | ||
- GLPI_BRANCH=9.2.1 | ||
- GLPI_BRANCH=9.2/bugfixes | ||
- GLPI_BRANCH=9.3/bugfixes | ||
- GLPI_BRANCH=master | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- nightly | ||
|
||
allow_failures: | ||
- php: nightly | ||
- env: GLPI_BRANCH=master | ||
|
||
before_script: | ||
- mysql -u root -e 'create database glpitest;' | ||
- git clone --depth=1 $GLPI_SOURCE -b $GLPI_BRANCH ../glpi && cd ../glpi | ||
- composer install --no-dev | ||
- if [ -e scripts/cliinstall.php ] ; then php scripts/cliinstall.php --db=glpitest --user=root --tests ; fi | ||
- if [ -e tools/cliinstall.php ] ; then php tools/cliinstall.php --db=glpitest --user=root --tests ; fi | ||
- mv ../GDrive plugins/GDrive | ||
- cd plugins/GDrive | ||
- composer install | ||
|
||
script: | ||
- vendor/bin/phpunit $PHPUNIT_ARGS | ||
- if [ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ] && [ "$GLPI_BRANCH" = "$AFTER_SUCCESS_BRANCH" ]; then vendor/bin/robo --no-interaction code:cs; fi | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache |