forked from doctrine/DoctrineBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (72 loc) · 2.31 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: php
sudo: false
dist: xenial
cache:
directories:
- $HOME/.composer/cache
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
global:
- COMPOSER_MEMORY_LIMIT=-1
before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- composer self-update
- composer global require --no-progress --no-scripts --no-plugins symfony/flex
install:
- travis_retry composer update -n --prefer-dist --prefer-stable
script:
- ./vendor/bin/phpunit -v
jobs:
allow_failures:
- php: nightly
include:
# Tests the lowest set of dependencies
- php: 7.1
env: LOWEST SYMFONY_DEPRECATIONS_HELPER=999999
install:
- travis_retry composer update -n --prefer-lowest --prefer-stable --prefer-dist
# Test against latest Symfony 3.4 stable
- php: 7.3
env: SYMFONY_REQUIRE="3.4.*" SYMFONY_DEPRECATIONS_HELPER=999999
# Test against latest Symfony 4.3 stable
- php: 7.3
env: SYMFONY_REQUIRE="4.3.*"
install:
- composer require --dev symfony/messenger --no-update
- travis_retry composer update -n --prefer-dist --prefer-stable
# Test against latest Symfony 4.4 dev
- php: 7.3
env: SYMFONY_REQUIRE="4.4.*"
install:
- composer require --dev symfony/messenger --no-update
- travis_retry composer update -n --prefer-dist
# Test dev versions
- php: 7.3
if: type = cron
env: DEV
install:
- travis_retry composer update -n --prefer-dist
# Test against PHP 8
- php: nightly
env: SYMFONY_DEPRECATIONS_HELPER=weak
before_install:
- composer config platform.php 7.4.99
- composer remove --dev doctrine/orm --no-update
install:
- travis_retry composer update -n --prefer-dist
- stage: Coverage
php: 7.3
install:
- composer require --dev "symfony/messenger" --no-update
- travis_retry composer update -n --prefer-dist
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
script:
- ./vendor/bin/phpunit -v --coverage-clover ./build/logs/clover.xml
after_script:
- php ./vendor/bin/coveralls -v