forked from pulp/plugin_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbefore_script.sh.j2
More file actions
executable file
·47 lines (33 loc) · 1 KB
/
before_script.sh.j2
File metadata and controls
executable file
·47 lines (33 loc) · 1 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
#!/usr/bin/env bash
{% include 'header.j2' %}
# 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