I am working on a fabric file to make the code deployment process a little easier. Now I would like to have dependencies between certain tasks, as described in here .
Let's simplify the task and say that I have two tasks: buildand deploy. The task buildshould build our code, and the task will deploytransfer it to the deployment server.
Now deploy, obviously, depends on build, but buildcan also be an autonomous task. Therefore, someone can simply create code using fab buildor deploy code using fab build deploy. But I also want people to use fab deployfor convenience, but then it must first start build. But it buildshould be done only once.
So, if I include buildin the task deploy, then fab build deploy, it will run buildtwice, and then deploy.
source
share