forked from getsentry/sentry-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (68 loc) · 2.1 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
language: php
os: linux
php:
- 7.4
- 7.3
- 7.2
- 7.1
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- |
if [ "$SYMFONY_VERSION" != "" ]; then
sed -ri '/symfony\/(monolog-bundle|messenger)/! s/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'$SYMFONY_VERSION'"/' composer.json;
fi;
- |
if [ "$SYMFONY_VERSION" == "3.4.*" ]; then
composer remove --dev symfony/messenger
fi;
- composer self-update
- composer global require hirak/prestissimo
install:
- travis_retry travis_wait composer update --no-interaction --prefer-dist --prefer-stable
script: >-
vendor/bin/phpunit -v --coverage-clover=build/coverage-report.xml
&& bash <(curl -s https://codecov.io/bash) -f build/coverage-report.xml
jobs:
include:
- stage: Test
php: 7.1
env:
- SYMFONY_VERSION: 3.4.*
- SYMFONY_DEPRECATIONS_HELPER: disabled
- php: 7.3
env: SYMFONY_VERSION=4.3.*
- php: 7.3
env: SYMFONY_VERSION=4.4.*
- php: 7.4
env: SYMFONY_VERSION=5.0.*
- name: prefer-lowest
install:
- travis_retry travis_wait composer install --no-interaction --prefer-dist
- composer remove --dev friendsofphp/php-cs-fixer phpstan/phpstan phpstan/phpstan-phpunit jangregor/phpstan-prophecy --no-update
- travis_retry travis_wait composer update --no-interaction --prefer-dist --prefer-stable --prefer-lowest
- name: Composer 2
before_install:
- composer self-update --snapshot
- composer require jean85/pretty-package-versions:^1.4 --no-interaction --no-update
- stage: Code style and static analysis
name: PHPStan
script:
- composer phpstan
- script:
- composer cs-check
name: PHP-CS-Fixer
allow_failures:
- name: sentry/sentry dev-develop
stage: Test
install: composer require sentry/sentry:dev-develop
notifications:
webhooks:
urls:
- https://zeus.ci/hooks/cd75fa32-e67c-11e9-8af5-9a14aa75c5d9/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always