forked from getsentry/sentry-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 902 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
37
38
39
40
language: php
sudo: false
dist: trusty
php:
- 7.1
- 7.2
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- composer global require hirak/prestissimo
install:
- travis_retry travis_wait composer update --no-interaction --prefer-dist --prefer-stable $COMPOSER_OPTIONS
script:
- vendor/bin/phpunit -v
jobs:
include:
- stage: Test
php: 7.1
env: COMPOSER_OPTIONS="--prefer-lowest"
- stage: Code style and static analysis
script:
- composer phpstan
env: PHPSTAN=true
- script:
- composer cs-check
env: CS-FIXER=true
- stage: coverage
script:
- phpdbg -qrr vendor/bin/phpunit --coverage-clover clover.xml
after_success:
- vendor/bin/ocular code-coverage:upload --format=php-clover clover.xml --revision=$TRAVIS_COMMIT