forked from php-amqplib/php-amqplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (42 loc) · 1.05 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
language: php
matrix:
include:
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
env: COVERAGE=true
- php: 7.4
fast_finish: true
allow_failures:
- php: 7.4
git:
depth: 1
services:
- docker
addons:
apt:
packages:
- rabbitmq-server
cache:
directories:
- $HOME/.composer
- vendor
before_install:
- docker pull shopify/toxiproxy
- docker run -d --rm --net=host -p 8474:8474 -p 5673:5673 shopify/toxiproxy
- docker ps -a
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
env:
global:
- TOXIPROXY_HOST=localhost TOXIPROXY_AMQP_PORT=5673
before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
script:
- vendor/bin/phpunit -d zend.enable_gc=0 --exclude-group management --coverage-text --coverage-clover=coverage.clover
after_success: >
if [[ $COVERAGE = true ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi