aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/php/vendor/react/socket/.travis.yml
blob: 917dc0c43cf595d85a6be42ed620bbf4ade0cd1a (plain) (blame)
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
language: php

php:
# - 5.3 # requires old distro, see below
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
# - 7.0 # Mac OS X, ignore errors, see below
  - hhvm # ignore errors, see below

# lock distro so new future defaults will not break the build
dist: trusty

matrix:
  include:
    - php: 5.3
      dist: precise
  include:
    - os: osx
      language: generic
      php: 7.0 # just to look right on travis
      env:
        - PACKAGE: php70
  allow_failures:
    - php: hhvm
    - os: osx

sudo: false

install:
  # OSX install inspired by https://github.com/kiler129/TravisCI-OSX-PHP
  - |
    if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then 
      brew tap homebrew/homebrew-php 
      echo "Installing PHP ..."
      brew install "${PACKAGE}"
      brew install "${PACKAGE}"-xdebug
      brew link "${PACKAGE}"
      echo "Installing composer ..."
      curl -s http://getcomposer.org/installer | php
      mv composer.phar /usr/local/bin/composer
    fi
  - composer install --no-interaction

script:
  - ./vendor/bin/phpunit --coverage-text