-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
63 lines (55 loc) · 1.95 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
sudo: false
notifications:
email: deploy@peter-gribanov.ru
branches:
except:
- /^analysis-.*$/
matrix:
fast_finish: true
include:
- php: 7.3
- php: 7.2
- php: 7.1
- php: 7.0
- php: 5.6
- php: 5.5
dist: trusty
- php: 5.5
dist: trusty
env: SYMFONY_VERSION=2.7.*
dist: trusty
- php: 5.5
dist: trusty
env: SYMFONY_VERSION=2.8.*
dist: trusty
- php: 5.5
dist: trusty
env: SYMFONY_VERSION=3.4.*
dist: trusty
- php: 7.1
env: SYMFONY_VERSION=4.3.* PHPUNIT_VERSION=5.7.*
- php: 5.5
dist: trusty
env: PREDIS_VERSION=1.0.*
dist: trusty
- php: 5.5
dist: trusty
env: PREDIS_VERSION=1.1.*
dist: trusty
- php: 5.6
env: PUBSUB_PREDIS_VERSION=2.0.*
before_install:
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
before_script:
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- 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;
- if [ "$PUBSUB_PREDIS_VERSION" != "" ]; then composer require "superbalist/php-pubsub-redis:${PUBSUB_PREDIS_VERSION}" --dev --no-update; fi;
- if [ "$PHPUNIT_VERSION" != "" ]; then composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --dev --no-update; fi;
- composer install --prefer-dist --no-interaction --no-scripts --no-progress
script:
- vendor/bin/phpunit --coverage-clover build/coverage-clover.xml
after_script:
- vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-clover.xml
- vendor/bin/php-coveralls -v -c .coveralls.yml