# Fake out Travis CI, since PHP isn't supported when using their Docker services
language: python

env:
  - PHP_VERSION=5.4.45 ARCH=x86_64
  - PHP_VERSION=5.4.45 ARCH=mips
  - PHP_VERSION=5.5.32 ARCH=x86_64
  - PHP_VERSION=5.5.31 ARCH=mips
  - PHP_VERSION=5.6.18 ARCH=x86_64
  - PHP_VERSION=5.6.17 ARCH=mips
  - PHP_VERSION=7.0.3 ARCH=x86_64
  - PHP_VERSION=hhvm ARCH=x86_64

sudo: required

addons:
  apt:
    packages:
      - php5-cli
      - php5-curl
      - qemu-user-static

services:
  - docker

install:
  - mkdir -p build/logs

script:
  - bash -ex ./util/run-tests.sh

after_script:
  - php vendor/bin/coveralls

notifications:
  webhooks:
    urls:
      - 'https://webhooks.gitter.im/e/f3356db3405001e47b5e'
    on_success: change
    on_failure: always
    on_start: false

language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm

sudo: false

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-dist

script:
  - mkdir -p build/logs
  - ./vendor/bin/parallel-lint src tests
  - ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
  - ./vendor/bin/phpcs src tests --standard=psr2 -sp

after_script:
  - php vendor/bin/coveralls

Update Travis builds to use Travis-installed PHP instead of Docker
Update Travis builds to use Travis-installed PHP instead of Docker

The Docker images currently do not have all the proper dependencies for
some newly-updated dependent packages (i.e. iconv), so we're using
standard Travis for the moment.
