.travis.yml 844 Bytes
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 9 10 11 12 13
matrix:
  include:
    - php: 5.3
      dist: precise
    - php: 5.4
    - php: 5.5
    - php: 5.6
    - php: 7.0
    - php: 7.1
    - php: 7.2
    - php: hhvm
14

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

Witold Wasiczko's avatar
Witold Wasiczko committed
19 20 21 22
# required to test HHVM
# see https://travis-ci.org/php-amqplib/php-amqplib/jobs/259347861
dist: trusty

Ricard Clau's avatar
Ricard Clau committed
23
before_script:
24
  - travis_retry composer self-update
25
  - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
26 27

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

30
after_script:
31
  - if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
32 33

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