forked from ker0x/messenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (28 loc) · 787 Bytes
/
.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
language: php
cache:
directories:
- $HOME/.composer/cache
php:
- 7.1
- 7.2
- 7.3
- 7.4
matrix:
fast_finish: true
include:
# Run test with code coverage
- php: 7.1
env: COVERAGE=true
before_install:
- composer self-update
install:
- composer update --prefer-dist --prefer-stable --no-interaction
script:
- vendor/bin/phpstan --level=max --memory-limit="-1" --no-progress analyze
- vendor/bin/php-cs-fixer fix --diff --dry-run
- vendor/bin/phpunit --stderr --coverage-clover=build/coverage.xml
after_success:
- if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
notifications:
email: false