You've already forked oscript-images
mirror of
https://github.com/pravets/oscript-images.git
synced 2025-10-08 23:01:52 +02:00
31 lines
765 B
Bash
Executable File
31 lines
765 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
if [ -z "${CI-}" ]; then
|
|
echo "The script is not running in CI"
|
|
source "${SCRIPT_DIR}/../.env"
|
|
else
|
|
echo "The script is running in CI"
|
|
fi
|
|
|
|
source "${SCRIPT_DIR}/../tools/assert.sh"
|
|
|
|
test_yard_is_running() {
|
|
log_header "Test :: yard is running"
|
|
|
|
local expected actual
|
|
|
|
expected="ИНФОРМАЦИЯ - [СписокРелизов1С]: Инициализирован обработчик"
|
|
actual=$(docker run --rm ${DOCKER_REGISTRY_URL}/${DOCKER_LOGIN}/yard:latest 2>/dev/null | head -n1)
|
|
|
|
if assert_eq "$expected" "$actual"; then
|
|
log_success "yard is running test passed"
|
|
else
|
|
log_failure "yard is running test failed"
|
|
fi
|
|
}
|
|
|
|
# test calls
|
|
test_yard_is_running |