Skip to content

Commit 7c1f623

Browse files
committed
Using depends-on instead of coping the command line
1 parent 1de83ea commit 7c1f623

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pixi.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ cmd = ["bash", "-c", "cd cuda_bindings && if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\"
4040
cmd = ["bash", "-c", "cd cuda_core && if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi"]
4141

4242
[target.linux.tasks.test]
43-
cmd = [
44-
"bash", "-c",
45-
"set -e; cd cuda_pathfinder && (if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi) && cd ../cuda_bindings && (if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi) && cd ../cuda_core && (if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi)"
43+
depends-on = [
44+
{ task = "test-pathfinder" },
45+
{ task = "test-bindings" },
46+
{ task = "test-core" }
4647
]

0 commit comments

Comments
 (0)