Tasks are distributed and intended to run within a project or outside of it. Tasks are generic. The goal is to provide consistency across routine tasks. And, to evolve them over time.
To build the task engine, run composer install --working-dir=tasks
from the root directory.
All commands are documented within engine.php.
You can also see this from the command line by running bild
.
- Run project create task:
bild project:create
- Edit your project-specific configuration found in
/path/to/new/project/config.yml
- [Optional] Update your make file found in
/path/to/new/project/scripts/project.make.yml
- Run initialize project task:
bild project:initialize
Installation is completed and you can follow the "Post-installation Tasks" defined below to set up your project.
Some tasks are intended to be run once per project (e.g. project:create
, project:initialize
,
project:initialize-documentation
). Others are intended to be run over time and as needed, per environment.
Current tasks include:
- Run Drush Make task:
bild project:build-make-file
- Generate documentation (table of contents):
bild project:generate-docs
- Add repo hooks (useful for developers):
bild repo:add-hooks
- Add repo remotes (useful for developers):
bild repo:add-remotes
- Load Composer dependencies:
bild project:load-composer-dependencies
Existing projects may want to leverage these tasks on their project.
Tasks only have one dependency: a project-specific config.yml (base found at example.config.yml) configured for your project needs.
For example, adding your own VM would require the steps:
- Copy project template
example.config.yml
to/path/to/existing/project/config.yml
- Edit your project-specific configuration found in
/path/to/existing/project/config.yml
- Run Add VM task:
bild vm:add
- Run Configure VM task:
bild vm:configure
- Verify your system supports the VM:
bild vm:check-dependencies
- Bootstrap VM:
bild vm:bootstrap
Bild is meant to be run from many platforms (CI systems, task runners, local dev, etc).
Like Drush, Bild can be invoked from within cloud hooks for use within Acquia Cloud.
Bild can be called from TravisCI configuration found at /.travis.yml
for relevance to your project. Invoke the task
engine and its tasks for your needs.
TBD