language: php

dist: bionic

matrix:
  fast_finish: true
  include:
    - php: 7.3
    - php: 7.2
    - php: 7.4

install:
  - composer install

script:
  - composer test

notifications:
  email:
    recipients:
      - wikidata-ci-status@wikimedia.de
    on_success: change
    on_failure: always
  irc:
    channels:
      - "irc.libera.chat#wikidata-feed"
    on_success: change
    on_failure: always
    template:
      - "%{repository}/%{branch}/%{commit} : %{author} %{message} %{build_url}"

cache:
  directories:
    - $HOME/.composer/cache
