.travis.yml 1.02 KB
Newer Older
Alvaro Videla's avatar
Alvaro Videla committed
1 2
language: php

Witold Wasiczko's avatar
Witold Wasiczko committed
3 4 5 6 7 8
matrix:
  include:
    - php: 5.6
    - php: 7.0
    - php: 7.1
    - php: 7.2
9
    - php: 7.3
10
    - php: 7.4snapshot
11
  allow_failures:
12
    - php: 7.4snapshot
13

14 15 16 17
# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

18 19 20
services:
  - docker

21 22 23 24 25
addons:
  apt:
    packages:
      - rabbitmq-server

26 27 28 29 30
cache:
  directories:
    - $HOME/.composer
    - vendor

31 32 33 34 35 36 37 38 39
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

Ricard Clau's avatar
Ricard Clau committed
40
before_script:
41
  - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
42 43

script:
44
  - vendor/bin/phpunit -d zend.enable_gc=0 --coverage-text --coverage-clover=coverage.clover
Ricard Clau's avatar
Ricard Clau committed
45

46
after_script:
47 48
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
49 50

services:
Frank Mayer's avatar
Frank Mayer committed
51
  rabbitmq