-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
39 lines (32 loc) · 961 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
language: php
php:
- 5.6
- 7.1
- 7.2
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
include:
- php: 5.6
env: DEPENDENCIES="symfony/lts:^2"
- php: 7.1
env: DEPENDENCIES="symfony/lts:^3"
- php: 7.2
env: DEPENDENCIES="symfony/lts:^3"
before_install:
- echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- if [ "$DEPENDENCIES" != "" ]; then composer require --no-update $DEPENDENCIES; fi;
install:
# Install dependencies
- composer update --prefer-dist --no-interaction
# Install Coveralls
- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version
script:
- mkdir -p build/logs
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_success:
- travis_retry php vendor/bin/php-coveralls -v