This should fix the travis builds.

This commit is contained in:
James Cole
2016-01-17 07:30:14 +01:00
parent a494398332
commit ae4cd8da12
2 changed files with 9 additions and 3 deletions

View File

@@ -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)) {