-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathbefore_script.sh
More file actions
executable file
·52 lines (38 loc) · 1.21 KB
/
before_script.sh
File metadata and controls
executable file
·52 lines (38 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
# './plugin-template --github pulp_python' to update this file.
#
# For more info visit https://github.com/pulp/plugin_template
# This script dumps some files to help understand the setup of the test scenario.
set -eu -o pipefail
# make sure this script runs at the repo root
cd "$(dirname "$(realpath -e "$0")")"/../../..
source .github/workflows/scripts/utils.sh
if [[ -f .github/workflows/scripts/pre_before_script.sh ]]; then
source .github/workflows/scripts/pre_before_script.sh
fi
# Developers often want to know the final pulp config
echo
echo "# Pulp config:"
tail -v -n +1 .ci/ansible/settings/settings.*
echo
echo "# Containerfile:"
tail -v -n +1 .ci/ansible/Containerfile
echo
echo "# Constraints Files:"
# They need not even exist.
tail -v -n +1 ../*/*constraints.txt || true
echo
echo "# pip list outside the container"
pip list
echo
echo "# pip list inside the container"
cmd_prefix bash -c "pip3 list"
echo
echo "# State of the containers"
docker ps -a
if [[ -f .github/workflows/scripts/post_before_script.sh ]]; then
source .github/workflows/scripts/post_before_script.sh
fi