mirror of
https://github.com/containers/skopeo.git
synced 2025-04-28 03:10:18 +00:00
The only thing hack/make.sh is now really doing is the warning + sleep without SKOPEO_CONTAINER_TESTS . So, make that a separate script, and eliminate the hack/make directory. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
18 lines
713 B
Bash
Executable File
18 lines
713 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Set this to 1 to enable installation/modification of environment/services
|
|
export SKOPEO_CONTAINER_TESTS=${SKOPEO_CONTAINER_TESTS:-0}
|
|
|
|
if [[ "$SKOPEO_CONTAINER_TESTS" == "0" ]] && [[ "$CI" != "true" ]]; then
|
|
(
|
|
echo "***************************************************************"
|
|
echo "WARNING: Executing tests directly on the local development"
|
|
echo " host is highly discouraged. Many important items"
|
|
echo " will be skipped. For manual execution, please utilize"
|
|
echo " the Makefile targets WITHOUT the '-local' suffix."
|
|
echo "***************************************************************"
|
|
) > /dev/stderr
|
|
sleep 5
|
|
fi
|