@jahia/cypress 3.24.0 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/env.run.sh +16 -1
- package/package.json +1 -1
package/env.run.sh
CHANGED
|
@@ -10,6 +10,11 @@ source $BASEDIR/set-env.sh
|
|
|
10
10
|
|
|
11
11
|
echo "$(date +'%d %B %Y - %k:%M') == env.run.sh == Printing the most important environment variables"
|
|
12
12
|
echo "$(date +'%d %B %Y - %k:%M') == NEXUS_USERNAME: ${NEXUS_USERNAME:0:3}***${NEXUS_USERNAME:(-6)}"
|
|
13
|
+
echo "$(date +'%d %B %Y - %k:%M') == DEBUG: ${DEBUG}"
|
|
14
|
+
|
|
15
|
+
if [[ "${DEBUG}" == "true" ]]; then
|
|
16
|
+
touch /tmp/debug
|
|
17
|
+
fi
|
|
13
18
|
|
|
14
19
|
echo "$(date +'%d %B %Y - %k:%M') == Fetching the list of installed modules =="
|
|
15
20
|
bash -c "unset npm_config_package; npx --yes @jahia/jahia-reporter@latest utils:modules \
|
|
@@ -49,10 +54,20 @@ if [[ $? -eq 0 ]]; then
|
|
|
49
54
|
echo "$(date +'%d %B %Y - %k:%M') == Full execution successful =="
|
|
50
55
|
echo "success" > ./results/test_success
|
|
51
56
|
yarn report:merge; yarn report:html
|
|
52
|
-
exit 0
|
|
53
57
|
else
|
|
54
58
|
echo "$(date +'%d %B %Y - %k:%M') == One or more failed tests =="
|
|
55
59
|
echo "failure" > ./results/test_failure
|
|
56
60
|
yarn report:merge; yarn report:html
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
WAIT_DURATION=0
|
|
64
|
+
while [[ -e /tmp/debug ]]; do
|
|
65
|
+
echo "Debug file present - $(( ++ WAIT_DURATION ))s - waiting for file removal or expiration of GitHub Actions timeout..."
|
|
66
|
+
sleep 1;
|
|
67
|
+
done
|
|
68
|
+
|
|
69
|
+
if [[ -e ./results/test_success ]]; then
|
|
70
|
+
exit 0
|
|
71
|
+
else
|
|
57
72
|
exit 1
|
|
58
73
|
fi
|