%% -*- mode: erlang -*-

%% Contains the data for the stages' phases and next stages.

%% Each stage is mapped to a 2-tuple.
%% The first item in this tuple is a list of _phases groups_,
%% which are run sequentially, and if a phase group fails, the
%% following ones are not executed.
%% Each _phase group_ is either a single phase, or a list of
%% such - if it's a list, those are run in parallel, and the phase
%% item fails if and if only if one of them fails.
%% The second item of the stage's tuple is the next stage to
%% trigger when successful. `none' indicates there's no next
%% stage to be triggered automatically.

{verify, {[[unit, lint, syntax]],
          none}}.

{build, {[[unit, lint, syntax], [quality, security],
            publish],
           acceptance}}.

{acceptance, {[provision, deploy, smoke, functional],
              none}}.

{union, {[provision, deploy, smoke, functional],
         rehearsal}}.

{rehearsal, {[provision, deploy, smoke, functional],
             delivered}}.

{delivered, {[provision, deploy, smoke, functional],
              none}}.
