Try again to fix travis failing at every sqlite tests

This commit is contained in:
Bubka 2022-04-01 15:37:13 +02:00
parent 4452a0b920
commit b47e9de4c9
2 changed files with 4 additions and 7 deletions

View File

@ -10,17 +10,12 @@ php:
services:
- mysql
cache:
directories:
- $HOME/.composer/cache
- $HOME/vendor
before_install:
- mysql -e 'CREATE DATABASE 2fauth_test;'
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- travis_retry composer install --no-interaction
# no need to use a dedicated Travis .env file as phpunit
# will use .env.testing by default

View File

@ -30,6 +30,8 @@
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<!-- Use .env.testing to customize other testing vars -->
<!-- following values override .env.testing vars -->
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</phpunit>