os: linux
dist: xenial

language: php

notifications:
  email:
    on_success: never
    on_failure: change

branches:
  only:
    - master

php:
  - 7.4

env:
  - WP_VERSION=latest WP_MULTISITE=0

before_script:
  - export PATH="$HOME/.config/composer/vendor/bin:$PATH"
  - phpenv config-rm xdebug.ini
  - composer global require wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer

script:
  - phpcs --standard=phpcs.ruleset.xml --extensions=php .
