aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures/project_with_pre_post_task_hooks
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fixtures/project_with_pre_post_task_hooks')
-rw-r--r--tests/fixtures/project_with_pre_post_task_hooks/pyproject.toml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/fixtures/project_with_pre_post_task_hooks/pyproject.toml b/tests/fixtures/project_with_pre_post_task_hooks/pyproject.toml
new file mode 100644
index 0000000..fb9a142
--- /dev/null
+++ b/tests/fixtures/project_with_pre_post_task_hooks/pyproject.toml
@@ -0,0 +1,16 @@
+[tool.poetry]
+name = "taskipy"
+description = "tasks runner for python projects"
+
+[tool.taskify.tasks]
+pre_hello = "echo 'pre_task'"
+hello = "echo 'hello'"
+post_hello = "echo 'post_task'"
+
+pre_hello_failed_pretask = "echo 'pre_task' && exit 1"
+hello_failed_pretask = "echo 'hello'"
+post_hello_failed_pretask = "echo 'post_task'"
+
+pre_hello_failed_posttask = "echo 'pre_task'"
+hello_failed_posttask = "echo 'hello'"
+post_hello_failed_posttask = "echo 'post_task' && exit 1"