ok

Mini Shell

Direktori : /opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/dev/ci/tests/binaries/
Upload File :
Current File : //opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/dev/ci/tests/binaries/build-linux

#!/usr/bin/env bash
# This script is from the "Passenger binaries test" Jenkins job. It builds
# generic Linux binaries for a specific architecture.
#
# Required environment variables:
#
#   WORKSPACE
#   ARCHITECTURE
#
# Optional environment variables:
#
#   PASSENGER_ROOT (defaults to $WORKSPACE)
#   OUTPUT_DIR (defaults to $WORKSPACE/output)
#   CACHE_DIR (defaults to $WORKSPACE/cache)

set -e
SELFDIR=$(dirname "$0")
cd "$SELFDIR/../../../../packaging/binaries"
# shellcheck source=../../../../packaging/binaries/shared/lib/library.sh
source "./shared/lib/library.sh"

require_envvar WORKSPACE "$WORKSPACE"
require_envvar ARCHITECTURE "$ARCHITECTURE"

PASSENGER_ROOT="${PASSENGER_ROOT:-$WORKSPACE}"
OUTPUT_DIR="${OUTPUT_DIR:-$WORKSPACE/output}"
CACHE_DIR="${CACHE_DIR:-$WORKSPACE/cache}"

run mkdir -p "$OUTPUT_DIR"
run mkdir -p "$CACHE_DIR"

run ./linux/build \
	-p "$PASSENGER_ROOT" \
	-c "$CACHE_DIR" \
	-o "$OUTPUT_DIR" \
	-a "$ARCHITECTURE" \
	-j 1 \
	passenger nginx

Zerion Mini Shell 1.0