From 1caf5860a8c3ad1d9429c342f2cf535bdeacce94 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Mon, 17 Feb 2020 17:46:01 +0300 Subject: [PATCH] move robofile --- .gitignore | 2 +- .travis.yml | 3 ++- composer.json | 2 +- .env-dist => tests/.env-dist | 0 RoboFile.php => tests/RoboFile.php | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) rename .env-dist => tests/.env-dist (100%) rename RoboFile.php => tests/RoboFile.php (99%) 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 @@