-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
82 lines (70 loc) · 2.48 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
language: php
sudo: false
dist: xenial
branches:
except:
- /^release-.*$/
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
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 dev-main
install:
- travis_retry composer update -n --prefer-dist --prefer-stable
script:
- ./vendor/bin/phpunit -v
jobs:
include:
# Test against latest Symfony 3.4
- php: 7.4
env: SYMFONY_REQUIRE="3.4.*"
install:
- composer require --dev lendable/symfony-messenger-polyfill --no-update
- travis_retry composer update -n --prefer-dist
# Test against latest Symfony 4.4
- php: 7.4
env: SYMFONY_REQUIRE="4.4.*"
install:
- composer require --dev symfony/messenger --no-update
- travis_retry composer update -n --prefer-dist
# Test against latest Symfony 5.2
- php: 7.4
env: SYMFONY_REQUIRE="5.2.*"
install:
- composer require --dev symfony/messenger --no-update
- travis_retry composer update -n --prefer-dist
- stage: Code Quality
env: CODING_STANDARDS=1
php: 8.0
install:
- composer require --dev symfony/messenger --no-update
- travis_retry composer update -n --prefer-dist
script:
- ./vendor/bin/php-cs-fixer fix -v --diff --dry-run
- ./vendor/bin/phpstan analyse -c phpstan.neon -l 6 src
- stage: Coverage
php: 8.0
env: XDEBUG_MODE=coverage
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
- composer require --dev php-coveralls/php-coveralls
script:
- ./vendor/bin/phpunit -v --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/php-coveralls -v
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/61c75218816eebde4486
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always