Skip to content

Commit db730e2

Browse files
committed
[ci] Add ABI_compliance_check stage to GitLab CI
1 parent a02d4a6 commit db730e2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.gitlab-ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,38 @@ OpenSUSE:
6969
<<: *default_config
7070
<<: *distro_build
7171

72+
ABI_compliance_check:
73+
image: fedora:30
74+
stage: deploy
75+
variables:
76+
# abi-dumper complains if we don't pass -Og
77+
CXXFLAGS: "-Og -g3 -gstrict-dwarf"
78+
CFLAGS: "-Og -g3 -gstrict-dwarf"
79+
# enabling curl is broken on 0.27
80+
CMAKE_FLAGS: "-DEXIV2_ENABLE_VIDEO=ON -DEXIV2_ENABLE_WEBREADY=ON -DBUILD_WITH_CCACHE=ON -DEXIV2_ENABLE_CURL=OFF -DEXIV2_ENABLE_SSH=ON"
81+
<<: *default_config
82+
script:
83+
- dnf -y install abi-compliance-checker abi-dumper git
84+
# FIXME: remove this line once
85+
# https://bodhi.fedoraproject.org/updates/FEDORA-2019-35201dc539 hits stable
86+
- dnf -y upgrade --enablerepo=updates-testing --advisory=FEDORA-2019-35201dc539
87+
- mkdir build-latest && pushd build-latest
88+
- cmake ${CMAKE_FLAGS} ..
89+
- make -j $(nproc)
90+
- abi-dumper lib/libexiv2.so -o ../ABI-1.dump -lver latest
91+
- popd
92+
- git checkout -f 0.27
93+
- mkdir build-0.27 && pushd build-0.27
94+
- cmake ${CMAKE_FLAGS} ..
95+
- make -j $(nproc)
96+
- abi-dumper lib/libexiv2.so -o ../ABI-0.dump -lver 0.27.0
97+
- popd
98+
- abi-compliance-checker -l libexiv2 -old ABI-0.dump -new ABI-1.dump
99+
artifacts:
100+
when: always
101+
paths:
102+
- compat_reports/
103+
72104
Install:
73105
image: fedora:latest
74106
stage: deploy

0 commit comments

Comments
 (0)