dist: xenial

addons:
    apt:
        packages:
            - ant-optional

language: php

php:
    - "7.4"
    - "7.3"
    - "7.2"
    - "7.1"
    - "5.6"

matrix:
    fast_finish: true

before_install:
    - echo "memory_limit = -1" > travis.php.ini && phpenv config-add travis.php.ini

install:
    - travis_retry composer self-update && composer --version
    - COMPOSER_ROOT_VERSION=2.1.x-dev travis_retry composer install --prefer-dist --no-interaction

script: ant -keep-going

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

cache:
    directories:
        - vendor

dist: xenial

addons:
    apt:
        packages:
            - ant-optional

language: php

php:
    - "7.4"
    - "7.3"
    - "7.2"
    - "7.1"
    - "5.6"

matrix:
    fast_finish: true

before_install:
    - echo "memory_limit = -1" > travis.php.ini && phpenv config-add travis.php.ini

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=$([[ ${TRAVIS_BRANCH} =~ hotfix/([0-9.]*(-(alpha|beta|rc)[0-9]+)?) ]] \
            && echo ${BASH_REMATCH[1]} \
            || echo dev-${TRAVIS_BRANCH}) \
            travis_retry composer update --prefer-dist --no-interaction;
        fi

script: ant -keep-going

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

cache:
    directories:
        - vendor

Add missing phpcq dev package
Add missing phpcq dev package
