diff options
Diffstat (limited to 'tests/fake.sh')
-rwxr-xr-x | tests/fake.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/fake.sh b/tests/fake.sh new file mode 100755 index 0000000..2835e85 --- /dev/null +++ b/tests/fake.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | binary="${0/*\/}" | ||
4 | fakeCommit="aaa000aaa000aaa000aaa000aaa000aaa000aaa0" | ||
5 | |||
6 | if [ "${binary}" = "clever" ] && [ "${1}" = "--version" ]; then | ||
7 | echo "1.6.3" | ||
8 | elif [ "${binary}" = "clever" ] && [ "${1}" = "activity" ]; then | ||
9 | echo "2020-02-02T20:20:02+02:00 OK DEPLOY ${fakeCommit} Git" | ||
10 | elif [ "${binary}" = "git" ]; then | ||
11 | echo "${fakeCommit}" | ||
12 | else | ||
13 | echo "${binary} called with arguments: ${*}" | ||
14 | fi | ||