1

我有一个 Laravel 4.2,在 bitbucket 上集成了 MySQL Web 应用程序,并决定使用 Codeship 进行持续集成。

当在 Codeship 上执行构建时,它会显示“.. 用户 root@localhost 的访问被拒绝 ..”

这是我的 Codeship 命令:

# Set php version through phpenv. 5.3, 5.4 and 5.5 available
phpenv local 5.4
# Install extensions through Pecl
# yes yes | pecl install memcache
# Install dependencies through Composer
composer install --prefer-source --no-interaction

这是 Codeship 测试命令:

phpunit

谢谢!

4

1 回答 1

0

已解决:
设置命令

# Set php version through phpenv. 5.3, 5.4 and 5.5 available
phpenv local 5.4
# Install extensions through Pecl
# yes yes | pecl install memcache
# Install dependencies through Composer
composer install --prefer-source --no-interaction
php artisan migrate
php artisan db:seed

测试命令

phpunit

环境变量

APP_ENV = codeship 
APP_HOST = localhost 
APP_DB = test 
于 2015-08-17T08:24:55.623 回答