forked from getsentry/sentry-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (50 loc) · 1.4 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
language: php
branches:
only:
- master
- develop
- /^release\/.+$/
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
- dependencies=highest
- dependencies=lowest
cache:
directories:
- $HOME/.composer/cache
stages:
- Code style & static analysis
- Test
jobs:
fast_finish: true
include:
- &code-style-static-analysis
stage: Code style & static analysis
name: PHP-CS-Fixer
php: 7.4
env: dependencies=highest
script: composer phpcs
- <<: *code-style-static-analysis
name: PHPStan
script: composer phpstan
- <<: *code-style-static-analysis
name: Psalm
script: composer psalm
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;
script: >-
vendor/bin/phpunit --coverage-clover=build/coverage-report.xml &&
bash <(curl -s https://codecov.io/bash) -f build/coverage-report.xml
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