grim/convey
Clone
Summary
Browse
Changes
Graph
Add a bunch of unit tests to the convey config loading
2017-07-30, Gary Kramlich
354542a003fa
Add a bunch of unit tests to the convey config loading
tasks
:
# define a task that fails
fail
:
image
:
gliderlabs/alpine:edge
command
:
false
# define a task that passes
pass
:
image
:
gliderlabs/alpine:edge
command
:
true
plans
:
# run a task that passes, then one that fails without the always flag set
pass-then-fail
:
stages
:
-
tasks
:
[
pass
]
-
tasks
:
[
fail
]
# run a task that fails, then one that passes with the always flag set to
# true
fail-then-pass
:
stages
:
-
tasks
:
[
fail
]
-
tasks
:
[
pass
]
always
:
true
# run multiple stages, with a task failing in the second, when the thrid
# stage is set to always run.
complicated
:
stages
:
-
tasks
:
[
pass
,
pass
]
-
tasks
:
[
fail
,
pass
]
concurrent
:
true
-
tasks
:
[
pass
,
fail
]
always
:
true