aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures/project_with_pre_post_task_hooks
diff options
context:
space:
mode:
authorRoy Sommer <roy@sommer.co.il>2019-12-22 23:09:38 +0200
committerRoy Sommer <roy@sommer.co.il>2019-12-22 23:09:38 +0200
commitea898f7bf45ca0f8667bd76d6718c6fff9961bd3 (patch)
treea0b1ed5885ad6e97c411335fcc2c3e6e093df8f4 /tests/fixtures/project_with_pre_post_task_hooks
downloadtaskipy2-ea898f7bf45ca0f8667bd76d6718c6fff9961bd3.zip
initial commit
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"