mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 21:43:53 +00:00
This should fix the travis builds.
This commit is contained in:
@@ -10,8 +10,9 @@ install:
|
|||||||
- composer install
|
- composer install
|
||||||
- php artisan env
|
- php artisan env
|
||||||
- mv -v .env.testing .env
|
- mv -v .env.testing .env
|
||||||
|
- php artisan env
|
||||||
- touch storage/database/testing.db
|
- touch storage/database/testing.db
|
||||||
- php artisan migrate --seed --env=testing
|
- php artisan migrate --seed
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- phpunit
|
- phpunit
|
||||||
|
|||||||
@@ -59,8 +59,13 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|||||||
|
|
||||||
// move .env file over?
|
// move .env file over?
|
||||||
if (!file_exists($copy)) {
|
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);
|
copy($original, $copy);
|
||||||
} else {
|
} else {
|
||||||
if (file_exists($copy)) {
|
if (file_exists($copy)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user