File: .travis.yml

package info (click to toggle)
php-amqplib 2.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,220 kB
  • sloc: php: 10,452; makefile: 51; sh: 7
file content (52 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download
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.4snapshot
  fast_finish: true
  allow_failures:
    - php: 7.4snapshot

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