1
0
mirror of https://github.com/go-task/task.git synced 2025-01-24 05:17:21 +02:00
task/testdata/precondition/Taskfile.yml

20 lines
285 B
YAML
Raw Normal View History

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