dist: xenial

addons:
  apt:
    packages:
      - ant-optional

language: php

php:
  - "7.4"
  - "7.3"
  - "7.2"

before_script:
  - travis_retry composer self-update && composer --version
  - travis_retry composer update --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