snide / travis-bundle
为 Symfony2 应用程序的 Travis 客户端
dev-master
2014-03-09 18:39 UTC
Requires
- php: >=5.3.3
- guzzle/cache: 3.*
- guzzle/plugin: 3.*
- snide/php-travis-client: dev-master
- symfony/framework-bundle: >=2.1.0
- twig/twig: 1.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-09-14 14:56:53 UTC
README
对您的仓库中 Travis CI 构建的一个快速概述(Symfony 2 扩展包)
设置
使用 Composer 安装
如果您使用 composer,将 SnideTravisBundle 扩展包作为依赖项添加到应用的 composer.json 中
"require": { ... "snide/travis-bundle": "dev-master" ... }, ## Loading Add the bundle to your app/AppKernel.php under the dev environment ```php if (in_array($this->getEnvironment(), array('dev', 'test'))) { ... $bundles[] = new Snide\Bundle\TravisBundle\SnideTravisBundle(); }
该扩展包需要将必要的资源复制到 web 文件夹。您可以使用以下命令
php app/console assets:install
配置
在您的 app/config/config_dev.yml
中添加 SnideTravisBundle,如下所示(您只希望在开发环境中使用此配置)
snide_travis: repository: slug: pdenis/SnideTravinizerBundle # your repository slug # Optional filesystem_cache_path: "%kernel.cache_dir%/travis"