forked from php-amqplib/php-amqplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (40 loc) · 1.02 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
language: php
matrix:
include:
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4snapshot
allow_failures:
- php: 7.4snapshot
# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
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
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 --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
services:
rabbitmq