baikal/.travis.yml

49 lines
984 B
YAML
Raw Normal View History

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