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

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

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