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

branches:
  only:
  - master
  - develop

php:
  - 7.3
  - 7.4

before_install:
  # Install nvm for nodejs
  - nvm install 12
  - nvm use 12
  # 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
  - php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
  - php vendor/bin/php-coveralls -v

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

branches:
  only:
  - master
  - develop

php:
  - 7.3
  
before_install:
  # Install nvm for nodejs
  - nvm install 12
  - nvm use 12
  # 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
  - php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
  - php vendor/bin/php-coveralls -v

Remove the php 7.4 coverage for now, need to test it first otherwise errors are occurring during the tests.
Remove the php 7.4 coverage for now, need to test it first otherwise errors are occurring during the tests.
