1
0
mirror of https://github.com/go-task/task.git synced 2024-12-14 10:52:43 +02:00
task/testdata/precondition/Taskfile.yml

20 lines
285 B
YAML
Raw Normal View History

version: '3'
2019-05-17 22:13:47 +02:00
tasks:
foo:
2019-05-28 22:02:59 +02:00
preconditions:
2019-05-17 22:13:47 +02:00
- test -f foo.txt
impossible:
2019-05-28 22:02:59 +02:00
preconditions:
2019-05-17 22:13:47 +02:00
- sh: "[ 1 = 0 ]"
2019-06-11 21:20:56 +02:00
msg: "1 != 0 obviously!"
2019-05-17 22:13:47 +02:00
2019-06-16 02:58:37 +02:00
depends_on_impossible:
2019-05-17 22:13:47 +02:00
deps:
- impossible
executes_failing_task_as_cmd:
cmds:
- task: impossible