forked from pluginsGLPI/useditemsexport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 1.02 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
language: php
env:
global:
# - GLPI_SOURCE="https://github.com/glpi-project/glpi -b 9.2/bugfixes"
- PHPUNIT_ARGS="--verbose --debug"
- CS=7.2
matrix:
# - GLPI_BRANCH=9.2.1
# - GLPI_BRANCH=9.2/bugfixes
# - GLPI_BRANCH=master
php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
allow_failures:
- php: nightly
before_script:
# - mysql -u root -e 'create database glpitest;'
# - git clone --depth=1 $GLPI_SOURCE -b $GLPI_BRANCH ../glpi && cd ../glpi
# - mv ../formcreator plugins/formcreator
# - 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
# - cd plugins/formcreator
- rm composer.lock
- composer install
script:
# - vendor/bin/phpunit $PHPUNIT_ARGS
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ]] ; then vendor/bin/robo --no-interaction code:cs; fi
cache:
directories:
- $HOME/.composer/cache