14 lines
368 B
Bash
14 lines
368 B
Bash
#!/bin/bash
|
|
set -e
|
|
set -u
|
|
set -x
|
|
|
|
echo "[${GIT_REPO_ID:-}#${GIT_REF_NAME:-}] Started at ${GIT_DEPLOY_TIMESTAMP:-}"
|
|
sleep ${GIT_DEPLOY_TEST_WAIT:-0.1}
|
|
echo "[${GIT_REPO_ID:-}#${GIT_REF_NAME:-}] Finished"
|
|
|
|
# TODO start/end? duration?
|
|
#curl -X POST "${GIT_DEPLOY_CALLBACK_URL}" -d '
|
|
# { "report": [ { "name":"sleep", "code":"PASS", "message":"", "details":"" } ] }
|
|
#'
|