matrix:
  include:
    - language: php

      php:
        - 7.2

      services:
        - mysql

      before_script:
        - cp .env.travis .env
        - sudo mysql -e 'create database testing;'
        - composer self-update
        - composer install --no-interaction
        - php artisan key:generate
        - php artisan migrate

      script:
        - vendor/bin/phpunit

    - language: node_js
      node_js:
        - lts/*
      install:
        - yarn install # npm ci
      script:
        - yarn docs-build # npm run docs:build
      deploy:
        provider: pages
        skip_cleanup: true
        local_dir: docs/.vuepress/dist
        github_token: $GITHUB_TOKEN # A token generated on GitHub allowing Travis to push code on you repository. Set in the Travis settings page of your repository, as a secure variable
        keep_history: false
        on:
          branch: master

matrix:
  include:
    - language: php

      php:
        - 7.2

      services:
        - mysql

      before_script:
        - cp .env.travis .env
        - sudo mysql -e 'create database testing;'
        - composer self-update
        - composer install --no-interaction
        - php artisan key:generate
        - php artisan migrate

      script:
        - vendor/bin/phpunit
        - vendor/bin/phpcs --warning-severity=6

    - language: node_js
      node_js:
        - lts/*
      install:
        - yarn install # npm ci
      script:
        - yarn docs-build # npm run docs:build
      deploy:
        provider: pages
        skip_cleanup: true
        local_dir: docs/.vuepress/dist
        github_token: $GITHUB_TOKEN # A token generated on GitHub allowing Travis to push code on you repository. Set in the Travis settings page of your repository, as a secure variable
        keep_history: false
        on:
          branch: master

Add phpcs command to Travis
Add phpcs command to Travis [WEB-1823]
