sudo: false
language: php
php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm
env:
  - ES_VERSION=1.7.4
  - ES_VERSION=2.1.1
matrix:
  allow_failures:
    - php: hhvm
install:
  - wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
  - tar -xzf elasticsearch-${ES_VERSION}.tar.gz
  - ./elasticsearch-${ES_VERSION}/bin/elasticsearch > /dev/null 2>&1 &
before_script:
  - composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
  - composer install --no-interaction
script:
  - vendor/bin/phpunit --coverage-clover=coveralls.clover
  - vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/,Tests/app/ ./
after_script:
  - travis_retry php vendor/bin/coveralls
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/81e47479feba5ba8dc47
    on_success: change
    on_start: never

sudo: false
language: php
php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm
env:
  global:
      - ES_VERSION="2.1.1"
      - SYMFONY="~3.0"
matrix:
  allow_failures:
    - php: hhvm
  include:
    - php: 7.0
      env: ES_VERSION="1.7.4"
    - php: 7.0
      env: SYMFONY="2.7.*"
install:
  - composer require --no-update symfony/symfony:${SYMFONY}
  - wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
  - tar -xzf elasticsearch-${ES_VERSION}.tar.gz
  - ./elasticsearch-${ES_VERSION}/bin/elasticsearch > /dev/null 2>&1 &
before_script:
  - composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
  - composer install --no-interaction
script:
  - vendor/bin/phpunit --coverage-clover=coveralls.clover
  - vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/,Tests/app/ ./
after_script:
  - travis_retry php vendor/bin/coveralls
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/81e47479feba5ba8dc47
    on_success: change
    on_start: never

Test old versions of Symfony and Elasticsearch only with newest PHP
Test old versions of Symfony and Elasticsearch only with newest PHP
