sudo: false
dist: xenial
language: php
cache:
    yarn: true
    directories:
        - $HOME/.composer/cache/files

env:
    global:
        - XDEBUG_MODE=coverage

branches:
  only:
  - master
  - develop

php:
  - 8.0.9

before_install:
  # Install nvm for nodejs
  - nvm install 16
  - nvm use 16
  # Install yarn
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=vendor/bin:node_modules/.bin:$HOME/.yarn/bin:$PATH

before_script:
  # Install dependencies and build the project
  - make yarn
  - make composerinstalldev
  - make build

script:
  - make generatekey
  - make phplintdry
  - make stylelint
  - make runtests
  - mkdir -p build/logs
  - php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_success:
  - travis_retry php vendor/bin/php-coveralls

sudo: false
dist: xenial
language: php
cache:
    yarn: true
    directories:
        - $HOME/.composer/cache/files

branches:
  only:
  - master
  - develop

php:
  - 8.0.9

before_install:
  # Install nvm for nodejs
  - nvm install 16
  - nvm use 16
  # Install yarn
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=vendor/bin:node_modules/.bin:$HOME/.yarn/bin:$PATH

before_script:
  # Install dependencies and build the project
  - make yarn
  - make composerinstalldev
  - make build

script:
  - make generatekey
  - make phplintdry
  - make stylelint
  - make runtests
  - mkdir -p build/logs
  - XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_success:
  - travis_retry php vendor/bin/php-coveralls

Set the debug mode inline with the phpunit coverage
Set the debug mode inline with the phpunit coverage
