From 0ef9b5b462bc3e6c2ead24248d6543c59e04fd99 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 25 Dec 2016 12:06:17 +0100 Subject: [PATCH] Make sure database is present in tests. --- .travis.yml | 3 ++- storage/database/.gitignore | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3bc855b12c..bcba948aa5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,12 +5,13 @@ php: install: - phpenv config-rm xdebug.ini - - composer selfupdate - rm composer.lock - composer update --no-scripts - php artisan clear-compiled - php artisan optimize - php artisan env + - cp .env.testing .env + - mv storage/database/databasecopy.sqlite storage/database/database.sqlite script: - phpunit \ No newline at end of file diff --git a/storage/database/.gitignore b/storage/database/.gitignore index 2f8355d95c..5382885af6 100644 --- a/storage/database/.gitignore +++ b/storage/database/.gitignore @@ -1,3 +1,3 @@ * !.gitignore -!seed.*.json \ No newline at end of file +!databasecopy.sqlite \ No newline at end of file