language: php
php:
    - "5.3"
    - "5.4"
    - "5.5"
    - "5.6"
    - "7.0"
    - "nightly"

sudo: false

install:
  - travis_retry composer self-update && composer --version
  # We have to supply the branch alias here again as travis checks out a commit hash and therefore destroys the
  # circular dependency phpcq/all-tasks -> phpcq/autoload-validation -> phpcq/all-tasks.
  - >
    if [ "x${TRAVIS_TAG}" != "x" ]; then
      COMPOSER_ROOT_VERSION=${TRAVIS_TAG} travis_retry composer update --prefer-dist --no-interaction;
    else
      COMPOSER_ROOT_VERSION=dev-${TRAVIS_BRANCH} travis_retry composer update --prefer-dist --no-interaction;
    fi

script: ant -keep-going

allow_failure:
    - php: "7.0"
    - php: "nightly"

# Hack to make things work again - we can not use a shallow repository.
git:
  depth: 2147483647

language: php
php:
    - "5.3"
    - "5.4"
    - "5.5"
    - "5.6"
    - "7.0"
    - "7.1"
    - "nightly"

sudo: false

install:
  - travis_retry composer self-update && composer --version
  # We have to supply the branch alias here again as travis checks out a commit hash and therefore destroys the
  # circular dependency phpcq/all-tasks -> phpcq/autoload-validation -> phpcq/all-tasks.
  - >
    if [ "x${TRAVIS_TAG}" != "x" ]; then
      COMPOSER_ROOT_VERSION=${TRAVIS_TAG} travis_retry composer update --prefer-dist --no-interaction;
    else
      COMPOSER_ROOT_VERSION=dev-${TRAVIS_BRANCH} travis_retry composer update --prefer-dist --no-interaction;
    fi

script: ant -keep-going

allow_failure:
    - php: "7.0"
    - php: "nightly"

# Hack to make things work again - we can not use a shallow repository.
git:
  depth: 2147483647

Add PHP 7.1 to list of php versions
Add PHP 7.1 to list of php versions
