mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-07 17:04:34 +01:00
Enable all tests for travis
This commit is contained in:
parent
751ff5d1b0
commit
530d09a93d
16
.travis.yml
16
.travis.yml
@ -7,26 +7,24 @@ language: php
|
|||||||
|
|
||||||
php:
|
php:
|
||||||
- 7.4
|
- 7.4
|
||||||
# - 8.0
|
- 8.0
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# - mysql
|
- mysql
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# - mysql -e 'CREATE DATABASE 2fauth_test;'
|
- mysql -e 'CREATE DATABASE 2fauth_test;'
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- travis_retry composer self-update
|
- travis_retry composer self-update
|
||||||
- travis_retry composer install --no-interaction
|
- travis_retry composer install --no-interaction
|
||||||
# no need to use a dedicated Travis .env file as phpunit
|
- cp .env.travis .env
|
||||||
# will use .env.testing by default
|
- php artisan key:generate
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# - DATABASE=mysql vendor/bin/phpunit -c phpunit-mysql.xml
|
- DATABASE=sqlite vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||||
- cp .env.travis .env
|
|
||||||
- php artisan config:clear
|
- php artisan config:clear
|
||||||
- php artisan key:generate
|
- DATABASE=mysql vendor/bin/phpunit -c phpunit-mysql.xml
|
||||||
- DATABASE=sqlite vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.xml
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# Submit coverage report to https://codecov.io
|
# Submit coverage report to https://codecov.io
|
||||||
|
Loading…
Reference in New Issue
Block a user