2016-01-21 13:03:23 -05:00
|
|
|
language: php
|
2017-10-09 16:29:52 -04:00
|
|
|
dist: trusty
|
2016-01-21 13:03:23 -05:00
|
|
|
php:
|
2020-02-17 04:23:57 -05:00
|
|
|
- 7.0
|
2019-08-21 10:52:33 -04:00
|
|
|
- 7.1
|
2018-04-18 14:45:23 -04:00
|
|
|
- 7.2
|
2019-08-21 10:52:33 -04:00
|
|
|
- 7.3
|
2020-02-17 04:23:57 -05:00
|
|
|
- 7.4
|
2016-01-21 13:03:23 -05:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
env:
|
2020-02-17 10:41:22 -05:00
|
|
|
global:
|
|
|
|
- RUN_PHPSTAN="FALSE"
|
2016-01-21 13:03:23 -05:00
|
|
|
matrix:
|
2020-02-17 10:31:33 -05:00
|
|
|
- PREFER_LOWEST=""
|
|
|
|
- PREFER_LOWEST="--prefer-lowest"
|
2016-01-21 13:03:23 -05:00
|
|
|
|
2020-02-17 10:41:22 -05:00
|
|
|
install:
|
|
|
|
- if [ $RUN_PHPSTAN == "TRUE" ]; then composer require --dev phpstan/phpstan:^0.12; fi
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: 'PHPStan'
|
|
|
|
php: 7.4
|
|
|
|
env:
|
|
|
|
- RUN_PHPSTAN="TRUE"
|
|
|
|
fast_finish: true
|
|
|
|
|
2016-01-21 13:03:23 -05:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
# - mysql -e 'create database sabredav'
|
2016-03-17 09:34:42 -04:00
|
|
|
- rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
|
2016-01-21 13:03:23 -05:00
|
|
|
# - composer self-update
|
2020-02-17 10:31:33 -05:00
|
|
|
- composer update $PREFER_LOWEST
|
2016-01-21 13:03:23 -05:00
|
|
|
|
|
|
|
script:
|
2020-02-17 10:41:22 -05:00
|
|
|
- if [ $RUN_PHPSTAN == "FALSE" ]; then find Core -name "*.php" | xargs -n1 php -l; fi
|
|
|
|
- if [ $RUN_PHPSTAN == "FALSE" ]; then ./vendor/bin/sabre-cs-fixer fix . --dry-run --diff; fi
|
|
|
|
- if [ $RUN_PHPSTAN == "TRUE" ]; then php vendor/bin/phpstan.phar analyse Core html; fi
|
2016-01-21 13:03:23 -05:00
|
|
|
|
2016-04-01 17:03:40 -04:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|