make: Add a Dockerfile to build mgmt for Fedora

This commit is contained in:
Laurent Indermuehle
2023-07-10 21:18:47 +02:00
parent 7d73c7fca9
commit 0dcfe027b0
19 changed files with 74 additions and 29 deletions

View File

@@ -2,7 +2,7 @@
. "$(dirname "$0")/../util.sh"
if in_ci github; then
if in_env github; then
# TODO: consider debugging this
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,7 +2,7 @@
. "$(dirname "$0")/../util.sh"
if in_ci github; then
if in_env github; then
# TODO: consider debugging this
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,7 +2,7 @@
. "$(dirname "$0")/../util.sh"
if in_ci github; then
if in_env github; then
# TODO: consider debugging this (flaky)
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,7 +2,7 @@
. "$(dirname "$0")/../util.sh"
if in_ci github; then
if in_env github; then
# TODO: consider debugging this (flaky)
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,7 +2,7 @@
. "$(dirname "$0")/../util.sh"
if in_ci github; then
if in_env github; then
# TODO: consider debugging this
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,7 +2,7 @@
. "$(dirname "$0")/../util.sh"
if in_ci github; then
if in_env github; then
# TODO: consider debugging this
echo "This is failing in github, skipping test!"
exit

View File

@@ -10,7 +10,7 @@ if ! ifconfig lo | grep 'inet6 ::1' >/dev/null; then
exit 0
fi
if in_ci github; then
if in_env github; then
# TODO: consider debugging this
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,13 +2,13 @@
. "$(dirname "$0")/../util.sh"
if in_ci travis; then
if in_env travis; then
# this often fails in travis with: `address already in use`
echo "Travis gives wonky results here, skipping test!"
exit
fi
if in_ci github; then
if in_env github; then
# TODO: consider debugging this
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,7 +2,7 @@
. "$(dirname "$0")/../util.sh"
if in_ci github; then
if in_env github; then
# TODO: consider debugging this (flaky)
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,7 +2,7 @@
. "$(dirname "$0")/../util.sh"
if in_ci github; then
if in_env github; then
# TODO: consider debugging this
echo "This is failing in github, skipping test!"
exit

View File

@@ -2,13 +2,13 @@
. "$(dirname "$0")/../util.sh"
if in_ci travis jenkins; then
if in_env travis jenkins; then
# inotify doesn't seem to work properly on travis
echo "Travis and Jenkins give wonky results here, skipping test!"
exit
fi
if in_ci github; then
if in_env github; then
# TODO: consider debugging this
echo "This is failing in github, skipping test!"
exit

View File

@@ -4,7 +4,7 @@
exit 0 # TODO: this test needs to be updated to use deploys instead
#if in_ci; then
#if in_env; then
# # inotify doesn't seem to work properly on travis
# echo "Travis and Jenkins give wonky results here, skipping test!"
# exit

View File

@@ -8,7 +8,7 @@ cd "${ROOT}"
. test/util.sh
# travis is slow for some reason
if in_ci travis; then
if in_env travis; then
export GO_TEST_TIMEOUT_SCALE=3
fi

View File

@@ -13,7 +13,7 @@ ROOT=$(dirname "${BASH_SOURCE}")/..
cd "${ROOT}"
. test/util.sh
#if in_ci travis jenkins; then
#if in_env travis jenkins; then
# echo "Travis and Jenkins give wonky results here, skipping test!"
# exit 0
#fi

View File

@@ -20,9 +20,9 @@ fi
TIMEOUT="$timeout --kill-after=360s --signal=QUIT 300s"
in_ci() {
in_env() {
if [ $# -eq 0 ]; then
test -n "$CI" -o -n "$GITHUB_ACTION" -o -n "$TRAVIS" -o -n "$JENKINS_URL"
test -n "$CI" -o -n "$GITHUB_ACTION" -o -n "$TRAVIS" -o -n "$JENKINS_URL" -o -n "$DOCKER"
return $?
fi
@@ -34,6 +34,8 @@ in_ci() {
test "$TRAVIS" = "true" && return 0;;
jenkins)
test -n "$JENKINS_URL" && return 0;;
docker)
test -n "$DOCKER" && return 0;;
*)
continue;;
esac
@@ -42,7 +44,7 @@ in_ci() {
}
fail_test() {
if in_ci github; then
if in_env github; then
echo "::error::$@"
else
echo -e "FAIL: $@"
@@ -57,16 +59,16 @@ function run-test() {
# travis expander helpers from:
# https://github.com/travis-ci/travis-rubies/blob/build/build.sh
fold_start() {
if in_ci travis; then
if in_env travis; then
echo -e "travis_fold:start:$1\033[33;1m${@:2}\033[0m"
elif in_ci github; then
elif in_env github; then
echo "::group::$@"
fi
}
fold_end() {
if in_ci travis; then
if in_env travis; then
echo -e "\ntravis_fold:end:$1\r"
elif in_ci github; then
elif in_env github; then
echo "::endgroup::"
fi
}