Skip to content

Commit 8708f2c

Browse files
committed
Use ARTILLERY_KEY if present
1 parent 36ab0f5 commit 8708f2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/artillery/project.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,35 @@
2222
"executor": "nx:run-commands",
2323
"options": {
2424
"cwd": "{projectRoot}",
25-
"command": "artillery run configs/pkp-sign.yml"
25+
"command": "artillery run configs/pkp-sign.yml $([ -n \"$ARTILLERY_KEY\" ] && echo \"--record --key $ARTILLERY_KEY\")"
2626
}
2727
},
2828
"run:encrypt-decrypt": {
2929
"executor": "nx:run-commands",
3030
"options": {
3131
"cwd": "{projectRoot}",
32-
"command": "artillery run configs/encrypt-decrypt.yml"
32+
"command": "artillery run configs/encrypt-decrypt.yml $([ -n \"$ARTILLERY_KEY\" ] && echo \"--record --key $ARTILLERY_KEY\")"
3333
}
3434
},
3535
"run:execute": {
3636
"executor": "nx:run-commands",
3737
"options": {
3838
"cwd": "{projectRoot}",
39-
"command": "artillery run configs/execute.yml"
39+
"command": "artillery run configs/execute.yml $([ -n \"$ARTILLERY_KEY\" ] && echo \"--record --key $ARTILLERY_KEY\")"
4040
}
4141
},
4242
"run:mix": {
4343
"executor": "nx:run-commands",
4444
"options": {
4545
"cwd": "{projectRoot}",
46-
"command": "artillery run configs/mix.yml"
46+
"command": "artillery run configs/mix.yml $([ -n \"$ARTILLERY_KEY\" ] && echo \"--record --key $ARTILLERY_KEY\")"
4747
}
4848
},
4949
"run:sign-session-key": {
5050
"executor": "nx:run-commands",
5151
"options": {
5252
"cwd": "{projectRoot}",
53-
"command": "artillery run configs/sign-session-key.yml"
53+
"command": "artillery run configs/sign-session-key.yml $([ -n \"$ARTILLERY_KEY\" ] && echo \"--record --key $ARTILLERY_KEY\")"
5454
}
5555
}
5656
},

0 commit comments

Comments
 (0)