The following tasks are part of the development tools, to simplify the local development and release process.
Sync local application with the remote instance.
$ dep dev:sync local
Reset local branch for further development.
$ dep dev:tr local
This task combines multiple steps to automate the release preparation.
Start the new release task.
$ dep dev:release local
Define the new release number within the prompt or use --newVersion=1.2.3
.
This includes the following steps:
- Tabula Rasa (reset local state)
- Start new release
- Custom steps
- Composer updates (App & CI)
- NPM updates
- QS (PHP & NPM)
- Tests (Acceptance)
You can extend or overwrite or disabled these steps, e.g.
task('dev:release:test:acceptance')->addAfter(function() {
runLocally('echo hello world')
});
task('dev:release:qa:npm')->disable();
Use the following command to reset the new release branch (in case of an occurring error):
$ dep dev:release:reset local
Use the following command to finish the new release branch by checking out the default branch and creating the new release version:
$ dep dev:release:finish local
Always check the automated created git commits before pushing them.
See the default config set.php to adjust the release process to your needs.
Hint: Use the following command to link your git user into the ddev container.
ln -s ~/.gitconfig ~/.ddev/homeadditions/.gitconfig