Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (53 sloc) 1.24 KB
language: php
php:
- 7.2
- 7.3
sudo: false
addons:
apt:
packages:
- libxml2-utils
cache:
directories:
- $HOME/.composer/cache
env:
global:
- PATH="$HOME/.composer/vendor/bin:$PATH"
- SYMFONY_DEPRECATIONS_HELPER=max[self]=0
- TARGET=test
stages:
- lint
- test
matrix:
fast_finish: true
include:
- stage: lint
php: 7.3
env: TARGET=lint
- stage: lint
php: 7.3
env: TARGET=phpstan
- stage: lint
php: 7.3
env: TARGET=checkdeps
- stage: test
php: 7.2
env: COMPOSER_FLAGS="--prefer-lowest"
- stage: test
php: 7.3
env: SYMFONY_VERSION=3.4.*
- stage: test
php: 7.3
env: SYMFONY_VERSION=4.2.*
allow_failures:
- php: 7.3
env: TARGET=checkdeps
before_install:
- wget "https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar" --output-document="${HOME}/bin/php-coveralls" && chmod u+x "${HOME}/bin/php-coveralls"
- gem install yaml-lint
install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
script: make $TARGET
after_success:
- php-coveralls -v
You can’t perform that action at this time.