How to Develop Adaptor
Scaffold
Octopus provides a simple way to develop a new adaptor, with running make template-adaptor
, get a scaffold under adaptors
directory. The overlay of the scaffold is as below:
Build management
Adaptor follows the build-management of Octopus, please view Develop Octopus for more details. Same as Octopus, Adaptor's management process consists of several stages with several actions. For convenience, the name of the action represents the current stage. The overall relationship of action flow is described as below:
Executing a stage for an Adaptor can run make adaptor <adatpor-name> <stage name>
, for example, when executing the test
stage for dummy adaptor, please run make adaptor dummy test
.
To execute a stage will execute all actions in the previous sequence, if running make adaptor dummy test
, it actually includes executing generate
, mod
, lint
, build
and test
actions.
To run an action by adding only
command, for example, if only run build
action, please use make adaptor <adatpor-name> build only
.
Integrate with dapper
via BY
environment variable, for example, if only run build
action via dapper
, please use BY=dapper make adaptor <adatpor-name> build only
.
Contributor workflow
Contributing is welcome, please view CONTRIBUTING for more details.