-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (33 loc) · 972 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: php
php:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
matrix:
allow_failures:
- php: '7.3'
env:
- SYMFONY_VERSION=2.8.* SYMFONY_PHPUNIT_VERSION=6.5
- SYMFONY_VERSION=3.4.* SYMFONY_PHPUNIT_VERSION=6.5
before_install:
- phpenv config-add travis/z_php.ini
- composer self-update
before_script:
- curl -L https://cs.symfony.com/download/php-cs-fixer-v2.phar -o php-cs-fixer
- sudo chmod a+x php-cs-fixer
- sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer
- echo $TRAVIS_PHP_VERSION
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
- composer install --no-interaction
script:
- php-cs-fixer fix . --verbose --rules=@Symfony --dry-run --using-cache=no
- SYMFONY_PHPUNIT_VERSION=6.5 SYMFONY_DEPRECATIONS_HELPER=417 bin/simple-phpunit --coverage-text # TODO: Fix deprecations
notifications:
email:
recipients:
on_success: change
on_failure: always
services:
- redis