os:
  - linux

language: php

php:
# - '5.6'
# - '7.0'
# - '7.1'
#  - '7.2'
  - '7.3'
  - '7.4'
  - '8.0'

services:
# - mongodb
  - mysql

before_script: 
  - sleep 10
# - mongo horizontlaravel --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]})
  - mysql -e 'CREATE DATABASE IF NOT EXISTS horizontlaravel;'
  - composer self-update --1
  - composer install --no-interaction
  - nvm install node
  - npm install
  - npm run production
  - php artisan serve > /dev/null 2>&1 &

script:
   - php artisan migrate --no-interaction --force
   - php artisan db:seed --no-interaction --force
   - export INSTALLED=YES
   - vendor/bin/phpunit --testsuite Unit,Integration --coverage-clover reports/coverage.xml
   - if [ -f "reports/coverage.xml" ]; then vendor/bin/codacycoverage clover reports/coverage.xml; fi
   - php artisan --version
   - php artisan hcms:version

os:
  - linux

language: php

php:
# - '5.6'
# - '7.0'
# - '7.1'
#  - '7.2'
  - '7.3'
  - '7.4'
  - '8.0'

services:
# - mongodb
  - mysql

before_script: 
  - sleep 10
# - mongo horizontlaravel --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]})
  - mysql -e 'CREATE DATABASE IF NOT EXISTS horizontlaravel;'
  - composer self-update --1
  - composer install --no-interaction
  - nvm install node
  - npm install
  - npm run production
  - php artisan serve > /dev/null 2>&1 &

script:
   - php artisan migrate --no-interaction --force
   - php artisan db:seed --no-interaction --force
   - export INSTALLED=YES
   - XDEBUG_MODE=coverage vendor/bin/phpunit --testsuite Unit,Integration --coverage-clover reports/coverage.xml
   - if [ -f "reports/coverage.xml" ]; then vendor/bin/codacycoverage clover reports/coverage.xml; fi
   - php artisan --version
   - php artisan hcms:version

Fix CI with xDebug mode
Fix CI with xDebug mode
