forked from getsentry/sentry-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (54 loc) · 1.57 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
language: php
branches:
only:
- master
- develop
- /^release\/.+$/
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
- dependencies=highest
- dependencies=lowest
matrix:
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
stages:
- Code style & static analysis
- Test
- Code coverage
jobs:
include:
- stage: Code style & static analysis
name: PHP CS Fixer
env: dependencies=highest
script: composer phpcs
- name: PHPStan
env: dependencies=highest
script: composer phpstan
- name: Psalm
env: dependencies=highest
script: composer psalm
- stage: Code coverage
php: 7.3
env: dependencies=highest
script:
- vendor/bin/phpunit --verbose --coverage-clover=build/logs/clover.xml
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml --revision=$TRAVIS_COMMIT
install:
- if [ "$dependencies" = "lowest" ]; then composer update --no-interaction --no-suggest --prefer-lowest --prefer-dist; fi;
- if [ "$dependencies" = "highest" ]; then composer update --no-interaction --no-suggest --prefer-dist; fi;
notifications:
webhooks:
urls:
- https://zeus.ci/hooks/cf8597c4-ffba-11e7-89c9-0a580a281308/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always