mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 09:26:29 -06:00
This should fix the travis builds.
This commit is contained in:
parent
a494398332
commit
ae4cd8da12
@ -10,8 +10,9 @@ install:
|
||||
- composer install
|
||||
- php artisan env
|
||||
- mv -v .env.testing .env
|
||||
- php artisan env
|
||||
- touch storage/database/testing.db
|
||||
- php artisan migrate --seed --env=testing
|
||||
- php artisan migrate --seed
|
||||
|
||||
script:
|
||||
- phpunit
|
||||
|
@ -59,8 +59,13 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
|
||||
// move .env file over?
|
||||
if (!file_exists($copy)) {
|
||||
touch($original);
|
||||
Artisan::call('migrate', ['--seed' => true]);
|
||||
|
||||
// maybe original does?
|
||||
if (!file_exists($original)) {
|
||||
touch($original);
|
||||
Artisan::call('migrate', ['--seed' => true]);
|
||||
}
|
||||
|
||||
copy($original, $copy);
|
||||
} else {
|
||||
if (file_exists($copy)) {
|
||||
|
Loading…
Reference in New Issue
Block a user