Update Travis configuration

- Add PHP 7.4 in matrix.
- Limit matrix to lowest and highiest PHP supported version.
- Run CS checks in strict mode.
- Remove dead config lines.
This commit is contained in:
Cédric Anne 2020-02-07 13:10:03 +01:00
parent 149ed02e7e
commit 3fa4e67698

View File

@ -1,51 +1,20 @@
language: php language: php
php: php:
- 5.6 - 5.6
- 7.0 - 7.4
- 7.1
- 7.2
- nightly - nightly
#env:
# global:
# - DB=mysql
# matrix:
# - GLPIVER=9.1/bugfixes
# - GLPIVER=master
before_script: before_script:
- composer self-update - composer self-update
# - git clone --depth=1 https://github.com/glpi-project/glpi -b $GLPIVER ../glpi && cd ../glpi - composer install --optimize-autoloader --prefer-dist --no-interaction --no-progress --no-suggest
# - composer install --no-dev
# - mysql -u root -e 'create database glpitest;'
# - php tools/cliinstall.php --db=glpi-test --user=travis --tests
# - mv ../{LNAME} plugins/{LNAME}
# - cd plugins/{LNAME}
- composer install -o
script: script:
- vendor/bin/robo --no-interaction code:cs - vendor/bin/robo --no-interaction code:cs --strict
# - mysql -u root -e 'select version();'
# - ./vendor/bin/atoum -bf tests/bootstrap.php -d tests/units/
matrix: matrix:
# exclude:
# - php: 5.4
# env: GLPIVER=master
allow_failures: allow_failures:
- php: nightly - php: nightly
cache: cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache
#notifications:
# irc:
# channels:
# - "irc.freenode.org#channel"
# on_success: change
# on_failure: always
# use_notice: true
# skip_join: true