Collect TXT and HTML reports produced by ABI checker

Although in util/api-checker.sh we create textual reports, we don't
preserve them in job artifacts, but we should.

We don't want to keep all HTML pages present in the project root, but
just those produced by ABI checker.

(cherry picked from commit b5ccf95b0a)
This commit is contained in:
Michal Nowak 2020-05-05 14:51:42 +02:00
parent 14a8713ef4
commit b5fdddd593
No known key found for this signature in database
GPG key ID: 24A3E8463AEE5E56
2 changed files with 3 additions and 2 deletions

View file

@ -1374,7 +1374,8 @@ abi-check:
- util/api-checker.sh . refbind
artifacts:
paths:
- "*.html"
- "*-lib*.html"
- "*-lib*.txt"
- "abi-*.dump"
expire_in: "1 week"
only:

View file

@ -80,4 +80,4 @@ while read -r HTMLREPORT; do
TXTREPORT="${HTMLREPORT/.html/.txt}"
echo " w3m: ${HTMLREPORT} -> ${TXTREPORT}"
w3m -dump -cols 75 -O ascii -T text/html "${HTMLREPORT}" > "${TXTREPORT}"
done < <(find . -maxdepth 1 -name '*.html')
done < <(find . -maxdepth 1 -name '*-lib*.html')