mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-28 18:09:23 +01:00
38 lines
670 B
YAML
38 lines
670 B
YAML
dist: bionic
|
|
|
|
env:
|
|
- XDEBUG_MODE=coverage
|
|
|
|
language: php
|
|
|
|
php:
|
|
- 8.1
|
|
- 8.2
|
|
- 8.3
|
|
|
|
services:
|
|
- mysql
|
|
|
|
before_install:
|
|
- mysql -e 'CREATE DATABASE 2fauth_test;'
|
|
|
|
before_script:
|
|
- travis_retry composer self-update
|
|
- travis_retry composer install --no-interaction
|
|
- cp .env.travis .env
|
|
- php artisan key:generate
|
|
|
|
script:
|
|
- DATABASE=sqlite vendor/bin/phpunit --coverage-clover=coverage.xml
|
|
- php artisan config:clear
|
|
- DATABASE=mysql vendor/bin/phpunit -c phpunit-mysql.xml
|
|
|
|
after_success:
|
|
# Submit coverage report to https://codecov.io
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
# Monitor only these branches
|
|
branches:
|
|
only:
|
|
- master
|
|
# - dev |