Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (31 sloc) 1.2 KB
language: php
matrix:
include:
- php: 7.1
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=3.4.*
- php: 7.3
env: SYMFONY_VERSION=3.4.*
- php: 7.3
env: SYMFONY_VERSION=4.3.*
env:
global:
- SYMFONY_DEPRECATIONS_HELPER=strict
sudo: false
cache:
directories:
- $HOME/.composer/cache
before_install:
- if [ "$PHPCS" = "yes" ]; then pear install pear/PHP_CodeSniffer; fi
- if [ "$PHPCS" = "yes" ]; then phpenv rehash; fi
- if [ "$PHPCS" != "yes"]; then composer selfupdate; fi
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi
- if [ "$SYMFONY_VERSION" = "3.4.*" ] || [ "$SYMFONY_VERSION" = "4.3.*" ]; then rm -f phpunit.xml; cp phpunit.sf4.xml.dist phpunit.xml; fi
install: COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist --no-interaction
script:
- if [ "$PHPCS" != "yes" ]; then vendor/bin/phpunit --coverage-text; fi
- if [ "$PHPCS" = "yes" ]; then phpcs --ignore=/vendor/*,/Tests/app/* --extensions=php --encoding=utf-8 --standard=PSR2 -np .; fi
notifications:
email:
- yeugone@prestaconcept.net
You can’t perform that action at this time.