move robofile

This commit is contained in:
Akolzin Dmitry 2020-02-17 17:46:01 +03:00
parent 9d90c32b17
commit 1caf5860a8
5 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View File

@ -6,4 +6,4 @@
/vendor /vendor
/www /www
/bin /bin
.env tests/.env

View File

@ -10,6 +10,7 @@ php:
env: env:
global: global:
- ROBO_CONFIG=$(TRAVIS_BUILD_DIR)/tests/robo.yml
- OC_DB_HOSTNAME=localhost - OC_DB_HOSTNAME=localhost
- OC_DB_USERNAME=root - OC_DB_USERNAME=root
- OC_DB_PASSWORD=root - OC_DB_PASSWORD=root
@ -27,7 +28,7 @@ before_script:
- composer install - composer install
- composer setup - 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 - (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
- sleep 2 - sleep 2

View File

@ -31,6 +31,6 @@
"@test-admin", "@test-admin",
"@test-catalog" "@test-catalog"
], ],
"setup" : "bin/robo opencart:setup" "setup" : "bin/robo --load-from tests/RoboFile.php opencart:setup"
} }
} }

View File

@ -1,7 +1,7 @@
<?php <?php
require_once('vendor/autoload.php'); require_once('vendor/autoload.php');
if (file_exists(__DIR__.'/.env')) { if (file_exists(__DIR__ . '/.env')) {
Dotenv::load(__DIR__); Dotenv::load(__DIR__);
} }