-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
44 lines (35 loc) · 990 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
41
42
43
44
dist: trusty
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
env:
- SYMFONY_CONSOLE_VERSION=2.8.*
- SYMFONY_CONSOLE_VERSION=3.*
matrix:
include:
- php: 7.1
env: SYMFONY_CONSOLE_VERSION=4.*
- php: 7.2
env: SYMFONY_CONSOLE_VERSION=4.*
services:
- rabbitmq
- docker
addons:
hosts:
- default
install:
- composer require symfony/console:${SYMFONY_CONSOLE_VERSION}
- travis_retry composer install --no-interaction --prefer-source
before_script:
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
- cp config/burrow-cli-config.php.travis config/burrow-cli-config.php
script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then make build test-integration; fi
- vendor/bin/phpunit --config=phpunit-coverage.xml --coverage-clover=coverage.xml
- vendor/bin/phpunit --config=phpunit-validation.xml
- vendor/bin/phpcs --standard=PSR2 src
after_script:
- php ocular.phar code-coverage:upload --format=php-clover coverage.xml