����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.28 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/3357889/root/opt/cpanel/ea-ruby27/src/passenger-release-6.0.27/dev/ci/tests/rpm/ |
Upload File : |
#!/usr/bin/env bash
# This script is from the "Passenger RPM packaging test" Jenkins job. It builds
# packages for a specific distribution and architecture and runs tests on the resulting packages.
#
# Required environment variables:
#
# WORKSPACE
# DISTRIBUTION
# ARCHITECTURE
#
# Optional environment variables:
#
# PASSENGER_ROOT (defaults to $WORKSPACE)
# CACHE_DIR (defaults to $WORKSPACE/cache)
# ENTERPRISE
# DEBUG_CONSOLE
#
# Sample invocation in Vagrant dev environment:
#
# env WORKSPACE=$HOME DISTRIBUTION=el8 ARCHITECTURE=x86_64 PASSENGER_ROOT=/passenger ./dev/ci/rpm/run
set -e
SELFDIR=$(dirname "$0")
cd "$SELFDIR/../../../../packaging/rpm"
# shellcheck source=../../../../packaging/rpm/internal/lib/library.sh
source "./internal/lib/library.sh"
# shellcheck source=../../../../packaging/rpm/internal/lib/distro_info.sh
source "./internal/lib/distro_info.sh"
require_envvar WORKSPACE "$WORKSPACE"
require_envvar DISTRIBUTION "$DISTRIBUTION"
require_envvar RPM_ARCH "$RPM_ARCH"
require_envvar DOCKER_ARCH "$DOCKER_ARCH"
PASSENGER_ROOT="${PASSENGER_ROOT:-$WORKSPACE}"
CACHE_DIR="${CACHE_DIR:-$WORKSPACE/cache}"
TEST_DISTRO_NAME=$(el_name_to_distro_name "$DISTRIBUTION")
if [[ "$DEBUG_CONSOLE" = true ]]; then
EXTRA_TEST_PARAMS=-D
else
EXTRA_TEST_PARAMS=
fi
if [[ "$ENTERPRISE" = 1 ]]; then
EXTRA_TEST_PARAMS="$EXTRA_TEST_PARAMS -e /etc/passenger-enterprise-license"
fi
run mkdir -p "$CACHE_DIR"
run ./build \
-w "$WORKSPACE/work" \
-c "$CACHE_DIR" \
-o "$WORKSPACE/output" \
-p "$PASSENGER_ROOT" \
-d "$DISTRIBUTION" \
-a "$RPM_ARCH" \
-A "$DOCKER_ARCH" \
-R \
rpm:all
run ./test \
-p "$PASSENGER_ROOT" \
-d "$WORKSPACE/output/$DISTRIBUTION" \
-c "$CACHE_DIR" \
-x "$TEST_DISTRO_NAME" \
-a "$RPM_ARCH" \
-A "$DOCKER_ARCH" \
-j \
$EXTRA_TEST_PARAMS