ec-europa / oe-robo
该软件包已被废弃且不再维护。作者建议使用openeuropa/task-runner软件包。
dev-master
2018-02-20 09:48 UTC
Requires
- boedah/robo-drush: ~3
- consolidation/robo: ^1.0
- nuvoleweb/robo-config: ~0
Requires (Dev)
This package is not auto-updated.
Last update: 2019-02-20 19:13:44 UTC
README
已废弃。有关更多信息,请查看OpenEuropa项目。
OpenEuropa Robo集成
基于Robo的OpenEuropa构建系统。
使用方法
请确保您的RoboFile
类继承自EC\OpenEuropa\Robo\Tasks
<?php use EC\OpenEuropa\Robo\Tasks; /** * Class RoboFile. */ class RoboFile extends Tasks { }
可用命令
运行以下命令列出可用命令
$ ./vendor/bin/robo
命令 | 描述 |
---|---|
project:install |
从头开始安装项目 |
project:install-config |
从现有配置安装项目 |
project:setup-settings |
设置Drupal settings.php 文件 |
project:setup-behat |
设置Behat测试环境 |
配置
可以通过在robo.yml.dist
文件中提供以下配置参数来配置构建命令
# Site information. site: name: Site name mail: info@example.org profile: oe_profile update: false locale: en # Administrator account. account: name: admin password: admin mail: admin@example.org # Database parameters. database: host: 127.0.0.1 port: 3306 name: drupal user: root password: '' prefix: '' # Behat settings. behat: # Behat configuration template. source: behat.yml.dist # Resulting Behat configuration file after performing token replacement. destination: behat.yml # Following tokens will be automatically replaced when running "project:setup-behat". tokens: _base_url: http://localhost # Binary location. bin: drush: ./vendor/bin/drush # Parameters for Drupal's settings.php. settings: config_directories: sync: ../config/sync
配置由Robo Config项目处理,请查看其README.md
以获取有关如何正确覆盖配置参数的更多信息。