-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
60 lines (52 loc) · 1.87 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
language: php
sudo: false
notifications:
email: [email protected]
branches:
except:
- /^analysis-.*$/
matrix:
fast_finish: true
include:
- php: 7.4
- php: 7.3
- php: 7.1
dist: trusty
- php: 7.1
dist: trusty
env: SYMFONY_VERSION=2.7.*
- php: 7.1
dist: trusty
env: SYMFONY_VERSION=2.8.*
- php: 7.1
dist: trusty
env: SYMFONY_VERSION=3.4.*
- php: 7.1
dist: trusty
env: SYMFONY_VERSION=4.4.*
- php: 7.2
dist: trusty
env: SYMFONY_VERSION=5.0.*
- php: 7.1
dist: trusty
env: PREDIS_VERSION=1.0.*
- php: 7.1
dist: trusty
env: PREDIS_VERSION=1.1.*
before_install:
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then echo 'xdebug.enable = on' >> /etc/hhvm/php.ini; fi
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- wget https://scrutinizer-ci.com/ocular.phar
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar
install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --dev --no-update; fi;
- if [ "$PREDIS_VERSION" != "" ]; then composer require "predis/predis:${PREDIS_VERSION}" --dev --no-update; fi;
- composer install --prefer-dist --no-interaction --no-scripts --no-progress
# Predis client in version 1.0 is not iterable
- if [ "$PREDIS_VERSION" = "1.0.*" ]; then cp .travis/predis_10_phpstan.neon phpstan.neon; fi;
script:
- vendor/bin/phpunit --verbose --coverage-clover build/coverage-clover.xml
- vendor/bin/phpstan analyse
after_script:
- php ocular.phar code-coverage:upload --format=php-clover build/coverage-clover.xml
- php php-coveralls.phar -v -c .coveralls.yml