diff --git a/.gitignore b/.gitignore index c534094..2086c68 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ /vendor /www /bin -.env +tests/.env diff --git a/.travis.yml b/.travis.yml index f24d3ae..246aa50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ php: env: global: + - ROBO_CONFIG=$(TRAVIS_BUILD_DIR)/tests/robo.yml - OC_DB_HOSTNAME=localhost - OC_DB_USERNAME=root - OC_DB_PASSWORD=root @@ -27,7 +28,7 @@ before_script: - composer install - composer setup - - bin/robo project:deploy + - bin/robo --load-from tests/RoboFile.php project:deploy - (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null - sleep 2 diff --git a/composer.json b/composer.json index b541a38..d9269cb 100644 --- a/composer.json +++ b/composer.json @@ -31,6 +31,6 @@ "@test-admin", "@test-catalog" ], - "setup" : "bin/robo opencart:setup" + "setup" : "bin/robo --load-from tests/RoboFile.php opencart:setup" } } diff --git a/.env-dist b/tests/.env-dist similarity index 100% rename from .env-dist rename to tests/.env-dist diff --git a/RoboFile.php b/tests/RoboFile.php similarity index 99% rename from RoboFile.php rename to tests/RoboFile.php index 6be3b39..94dc446 100644 --- a/RoboFile.php +++ b/tests/RoboFile.php @@ -1,7 +1,7 @@