REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.05 KB
Close
/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/dev/ci/setup-host
Text
Base64
#!/usr/bin/env bash set -eo pipefail SELFDIR=$(dirname "$0") SELFDIR=$(cd "$SELFDIR" && pwd) PASSENGER_ROOT=$(cd "$SELFDIR/../.." && pwd) # shellcheck source=lib/functions.sh source "$SELFDIR/lib/functions.sh" cd "$PASSENGER_ROOT" header "Setting up stuff on the host" autodetect_environment sanity_check_environment echo if [[ "$OS" = macos && "$1" = "" ]]; then echo "Usage: ./dev/ci/setup-host <TEST NAME>" >&2 exit 1 fi if [ "${CI:-false}" = "true" ]; then # Relax permissions. Necessary for unit tests which test permissions. header2 "Relaxing file permissions" echo "+ Setting umask" umask u=rwx,g=rx,o=rx run chmod g+rx,o+rx . echo "+ chmodding files" find ./* -type f -print0 | xargs -0 -n 512 chmod g+r,o+r echo "+ chmodding directories" find ./* -type d -print0 | xargs -0 -n 512 chmod g+rx,o+rx # Create this file now because otherwise it would be owned by root, # which CI runner cannot remove. run touch test/test.log if [ "${GITHUB_ACTIONS:-false}" = "true" ] && [ "$OS" = "macos" ]; then brew update brew install ccache sudo security authorizationdb write com.apple.trust-settings.admin allow sudo security add-trusted-cert -d -r trustRoot -p codeSign -k /Library/Keychains/System.keychain "$PASSENGER_ROOT/dev/ci/Certificates.cer" sudo security import "$PASSENGER_ROOT/dev/ci/Developer.key" -k /Library/Keychains/System.keychain -t priv -A sudo security import "$PASSENGER_ROOT/dev/ci/Developer.pub" -k /Library/Keychains/System.keychain -t pub -A fi echo fi header2 "Creating cache directories" run mkdir -p "$CACHE_DIR" run mkdir -p "$CACHE_DIR/bundle" run mkdir -p "$CACHE_DIR/ccache" run mkdir -p "$CACHE_DIR/npm" echo # Directory must exist so that workflow can upload artifacts. header2 "Creating buildout directory" run mkdir -p buildout buildout/testlogs echo if [[ "$OS" = macos ]]; then export CI_COMMAND="./dev/ci/setup-host $*" exec "$PASSENGER_ROOT/dev/ci/scripts/debug-console-wrapper.sh" \ "$PASSENGER_ROOT/dev/ci/scripts/setup-host-natively.sh" "$@" fi
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
lib
DIR
-
drwxr-xr-x
2026-02-13 08:03:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
scripts
DIR
-
drwxr-xr-x
2026-02-13 08:03:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tests
DIR
-
drwxr-xr-x
2026-02-13 08:03:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Certificates.cer
788 B
lrw-r--r--
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Developer.key
1.66 KB
lrw-r--r--
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Developer.pub
459 B
lrw-r--r--
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fetch-cache-az-blob-storage
1.29 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
5.14 KB
lrw-r--r--
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
run-tests-natively
1.07 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
run-tests-with-docker
1.03 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
setup-bundle-gem-path
197 B
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
setup-host
2.05 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
setup-sccache
2.36 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
teardown-sccache
692 B
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update-cache-az-blob-storage
767 B
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).