Skip to content

Commit

Permalink
assert log using CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Aug 1, 2023
1 parent 1775801 commit 4f3548b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ jobs:
run: |
cd test
find . -name '*.html' -exec rm {} \;
make html SPHINXOPTS='-W'
make html SPHINXOPTS='-W' | tee log.txt
(cd _build/html && rm genindex.html index.html search.html php-modindex.html)
(cd _build/html && find . -name '*.html' -exec sh -c 'xmllint {} --xpath '"'"'//div[@role="main"]'"'"' | xmllint --format - > ../../{}' \;)
sed -i -r 's~.*/(test/.* \[phpdomain)~\1~;t;d' log.txt
- name: Diff Unit Tests Output
run: |
Expand Down
27 changes: 27 additions & 0 deletions test/log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
test/method.md:11: [phpdomain] Target not found 'Foo\array'
test/ns.md:48: [phpdomain] Target not found 'A2::simplify'
test/ns.md:53: [phpdomain] Target not found 'Bar2\A::simplify'
test/rst_doc.md:24: [phpdomain] Target not found 'array'
test/rst_doc.md:27: [phpdomain] Target not found 'boolean'
test/rst_doc.md:40: [phpdomain] Target not found 'DateTime\int'
test/rst_doc.md:40: [phpdomain] Target not found 'DateTime\int'
test/rst_doc.md:40: [phpdomain] Target not found 'DateTime\int'
test/rst_doc.md:48: [phpdomain] Target not found 'DateTime\int'
test/rst_doc.md:48: [phpdomain] Target not found 'DateTime\int'
test/rst_doc.md:48: [phpdomain] Target not found 'DateTime\int'
test/rst_doc.md:104: [phpdomain] Target not found 'DateTimeInterface\int'
test/rst_doc.md:104: [phpdomain] Target not found 'DateTimeInterface\int'
test/rst_doc.md:104: [phpdomain] Target not found 'DateTimeInterface\int'
test/rst_doc.md:112: [phpdomain] Target not found 'DateTimeInterface\int'
test/rst_doc.md:112: [phpdomain] Target not found 'DateTimeInterface\int'
test/rst_doc.md:112: [phpdomain] Target not found 'DateTimeInterface\int'
test/rst_doc.md:221: [phpdomain] Target not found 'LibraryName\string'
test/rst_doc.md:221: [phpdomain] Target not found 'LibraryName\string'
test/rst_doc.md:497: [phpdomain] Target not found 'OtherLibrary\ReturningClass\string'
test/rst_doc.md:502: [phpdomain] Target not found 'OtherLibrary\ReturningClass\int|string|OtherLibrary\ReturnedClass|LibraryName\SubPackage\SubpackageInterface|null'
test/rst_doc2.md:11: [phpdomain] Target not found 'Imagine\Draw\ImagineImageImageInterface::draw'
test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\ImagineImagePointInterface'
test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\ImagineImageBoxInterface'
test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\integer'
test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\integer'
test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\ImagineImageColor'

0 comments on commit 4f3548b

Please sign in to comment.