mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-07 17:04:34 +01:00
751ff5d1b0
This reverts commit 34db59a991
.
39 lines
784 B
YAML
39 lines
784 B
YAML
dist: bionic
|
|
|
|
env:
|
|
- XDEBUG_MODE=coverage
|
|
|
|
language: php
|
|
|
|
php:
|
|
- 7.4
|
|
# - 8.0
|
|
|
|
services:
|
|
# - mysql
|
|
|
|
before_install:
|
|
# - mysql -e 'CREATE DATABASE 2fauth_test;'
|
|
|
|
before_script:
|
|
- travis_retry composer self-update
|
|
- travis_retry composer install --no-interaction
|
|
# no need to use a dedicated Travis .env file as phpunit
|
|
# will use .env.testing by default
|
|
|
|
script:
|
|
# - DATABASE=mysql vendor/bin/phpunit -c phpunit-mysql.xml
|
|
- cp .env.travis .env
|
|
- php artisan config:clear
|
|
- php artisan key:generate
|
|
- DATABASE=sqlite vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.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 |