Skip to content

Firefly III: a personal finances manager

This should fix the travis builds.

James Coleae4cd8da1239
diff --git a/.travis.yml b/.travis.yml
index ffcb67ced3..fcabf8f7bf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
diff --git a/tests/TestCase.php b/tests/TestCase.php
index 3f5e19ebcf..b77659a6f1 100755
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -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)) {