From ae4cd8da1239957d1a38f45b28df1cf3f3ce5df8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 17 Jan 2016 07:30:14 +0100 Subject: [PATCH] This should fix the travis builds. --- .travis.yml | 3 ++- tests/TestCase.php | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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)) {