-
Notifications
You must be signed in to change notification settings - Fork 103
/
.travis.yml
50 lines (43 loc) · 1.36 KB
/
.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
42
43
44
45
46
47
48
49
50
language: php
sudo: false
git:
depth: 1
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: nightly
env:
- SYMFONY_VERSION="dev-master"
- CHECK_PHP_SYNTAX="no"
- php: 7.2
env:
- SYMFONY_VERSION="3.4.*"
- CHECK_PHP_SYNTAX="yes"
- php: 7.2
env:
- SYMFONY_VERSION="4.4.*"
- CHECK_PHP_SYNTAX="yes"
- php: 7.2
env:
- SYMFONY_VERSION="5.0.*"
- CHECK_PHP_SYNTAX="yes"
allow_failures:
- php: nightly
before_install:
- stty cols 120
- INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo memory_limit = -1 >> $INI_FILE
- echo session.gc_probability = 0 >> $INI_FILE
- echo opcache.enable_cli = 1 >> $INI_FILE
- rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- composer self-update
- if [[ "$SYMFONY_VERSION" != "" ]]; then composer require "symfony/framework-bundle:${SYMFONY_VERSION}" --no-update; fi;
install:
- if [[ "$CHECK_PHP_SYNTAX" == "yes" ]]; then composer require --dev --no-update friendsofphp/php-cs-fixer; fi;
- composer update --prefer-dist --no-interaction --no-suggest --no-progress --ansi
script:
- vendor/bin/phpunit
- if [[ "$CHECK_PHP_SYNTAX" == "yes" ]]; then php vendor/bin/php-cs-fixer --no-interaction --dry-run --diff -v fix; fi;