ci: migrate to GitLab CI with multi-distribution RPM builds
- Replace GitHub Actions with GitLab CI using Docker-in-Docker - Build 3 RPMs (el7, el8, el9) + 1 DEB from Dockerfile.package - Add verify jobs for each target distribution - Remove obsolete files: - Dockerfile, Dockerfile.test-socket (replaced by Dockerfile.package) - scripts/socket_consumer.py, scripts/socket_listener.py - scripts/test_unix_socket.sh, scripts/run_integration_tests.sh - Update README.md with new package targets - Update architecture.yml for GitLab CI workflow Breaks: Single RPM no longer supported (glibc incompatibility) Replaced by: Distribution-specific RPMs (el7, el8, el9) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@ -1,29 +1,27 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# test.sh - Run tests for mod_reqin_log in Docker
|
||||
# test.sh - Run unit tests for mod_reqin_log in Docker
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
IMAGE_NAME="mod_reqin_log-build"
|
||||
|
||||
echo "========================================"
|
||||
echo "mod_reqin_log - Test Suite"
|
||||
echo "mod_reqin_log - Unit Tests"
|
||||
echo "========================================"
|
||||
echo ""
|
||||
|
||||
# Build image if not exists
|
||||
if ! docker images "$IMAGE_NAME" | grep -q "$IMAGE_NAME"; then
|
||||
echo "Building Docker image first..."
|
||||
"$SCRIPT_DIR/scripts/build.sh"
|
||||
fi
|
||||
# Build test image
|
||||
echo "Building test container..."
|
||||
docker build -f Dockerfile.tests -t mod_reqin_log:tests "$SCRIPT_DIR/.."
|
||||
|
||||
echo ""
|
||||
echo "Running unit tests..."
|
||||
echo ""
|
||||
|
||||
# Run unit tests in container
|
||||
docker run --rm "$IMAGE_NAME" bash -c "cd build/tests && ctest --output-on-failure"
|
||||
docker run --rm mod_reqin_log:tests ctest --output-on-failure
|
||||
|
||||
echo ""
|
||||
echo "========================================"
|
||||
|
||||
Reference in New Issue
Block a user