Skip to content

Commit 2d99cc2

Browse files
Ondřej Surýrkrejci
authored andcommitted
Generate and dump text output from the ABI Compliance Checker HTML output
1 parent a18b519 commit 2d99cc2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ addons:
4343
update: true
4444

4545
before_install:
46-
- if [ "$DEPLOY_BUILD" = "TRUE" ]; then sudo apt-get -y install abi-dumper abi-compliance-checker pkg-config; fi
46+
- if [ "$DEPLOY_BUILD" = "TRUE" ]; then sudo apt-get -y install abi-dumper abi-compliance-checker pkg-config w3m; fi
4747
- git clone git://git.cryptomilk.org/projects/cmocka.git
4848
- cd cmocka && mkdir build && cd build
4949
- cmake .. && make -j2 && sudo make install

tools/abi-check.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/sh -e
2+
status=0
23
# Dump the current ABI
34
abi-dumper ./build/libyang.so -o ./build/libyang.dump -lver "$(PKG_CONFIG_PATH=./build pkg-config --modversion libyang)"
45
# Compare the current ABI with previous ABI
5-
abi-compliance-checker -l libyang.so -old ./libyang.dump -new ./build/libyang.dump -s
6+
abi-compliance-checker -l libyang.so -old ./libyang.dump -new ./build/libyang.dump -s || status=$?
7+
# Generate and dump text output
8+
w3m -dump -O ascii -T text/html "$(find "compat_reports/${SONAME}" -name '*.html')"
9+
exit $status

0 commit comments

Comments
 (0)