Skip to content

Commit cd16871

Browse files
committed
Fix infection configuration
1 parent acc39c7 commit cd16871

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

bin/release/prepare

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,15 @@ function updateInfectionBadge() {
7272
rm "${logsPath}"
7373
fi
7474

75-
"${rootDir}"/bin/release/infection > /dev/null
75+
"${rootDir}"/bin/release/infection
76+
77+
if [ ! -f "${logsPath}" ]; then
78+
echo "Unable to find infestion logs.json."
79+
ls -lah "${rootDir}"/var
80+
ls -lah "${rootDir}"/var/release
81+
ls -lah "${rootDir}"/var/release/infection
82+
exit 1
83+
fi
7684

7785
local infectionMsiPercent=
7886
infectionMsiPercent=$(jq -r ".stats.msi" < "${logsPath}")

config/ci/infection.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
},
1010
"tmpDir": "../../var/ci/infection",
1111
"logs": {
12-
"text": "php://stdout",
13-
"json": "var/ci/infection/logs.json"
12+
"text": "php://stdout"
1413
}
1514
}

0 commit comments

Comments
 (0)