@ngocsangairvds/vsaf 5.4.1 → 5.4.2
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/package.json
CHANGED
|
@@ -59,7 +59,7 @@ nodes:
|
|
|
59
59
|
- impl-loop
|
|
60
60
|
bash: |
|
|
61
61
|
echo "[vsaf] env-check: scanning build/test toolchain…"
|
|
62
|
-
MISS
|
|
62
|
+
MISS=$ARTIFACTS_DIR/env-missing.txt; : > "$MISS"
|
|
63
63
|
note() { echo "$1" >> "$MISS"; echo " ✗ $1"; }
|
|
64
64
|
if [ -f pom.xml ] || [ -f mvnw ]; then
|
|
65
65
|
echo "project: Maven"
|
|
@@ -125,10 +125,11 @@ nodes:
|
|
|
125
125
|
depends_on:
|
|
126
126
|
- env-devops
|
|
127
127
|
bash: |
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
TEXIT=$ARTIFACTS_DIR/test-exit; TLOG=$ARTIFACTS_DIR/test-output.log
|
|
129
|
+
if [ -f "$TEXIT" ]; then
|
|
130
|
+
code=$(cat "$TEXIT" 2>/dev/null | tr -cd '0-9'); code="${code:-1}"
|
|
130
131
|
echo "[vsaf] test-gate: verifying result (exit=$code)"
|
|
131
|
-
tail -30 "$
|
|
132
|
+
tail -30 "$TLOG" 2>/dev/null || true
|
|
132
133
|
exit "$code"
|
|
133
134
|
fi
|
|
134
135
|
echo "[vsaf] test-gate: no prepared test result (env-devops did not record test-exit)"; exit 1
|
|
@@ -47,7 +47,7 @@ nodes:
|
|
|
47
47
|
bash: |
|
|
48
48
|
echo "[vsaf] env-preflight: verifying test toolchain…"
|
|
49
49
|
NO_INSTALL="${VSAF_NO_AUTO_INSTALL:-0}"
|
|
50
|
-
ENV_FILE
|
|
50
|
+
ENV_FILE=$ARTIFACTS_DIR/vsaf-env.sh
|
|
51
51
|
: > "$ENV_FILE"
|
|
52
52
|
pkg_install() { # $1 brew formula, $2 apt pkg, $3 label
|
|
53
53
|
if [ "$NO_INSTALL" = "1" ]; then
|
|
@@ -98,7 +98,7 @@ nodes:
|
|
|
98
98
|
- id: test-gate
|
|
99
99
|
description: Test Gate — automated tests
|
|
100
100
|
bash: |
|
|
101
|
-
|
|
101
|
+
EF=$ARTIFACTS_DIR/vsaf-env.sh; [ -f "$EF" ] && . "$EF"
|
|
102
102
|
if [ -f mvnw ] && [ -f .mvn/wrapper/maven-wrapper.jar ]; then ./mvnw -q test 2>&1
|
|
103
103
|
elif command -v mvn >/dev/null 2>&1 && [ -f pom.xml ]; then mvn -q test 2>&1
|
|
104
104
|
elif [ -f gradlew ]; then ./gradlew test 2>&1
|