Skip to content

Commit

Permalink
[ci] Add ABI_compliance_check stage to GitLab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
D4N committed Jun 18, 2019
1 parent c86a36a commit a02f38e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,34 @@ OpenSUSE:
<<: *default_config
<<: *distro_build

ABI_compliance_check:
image: fedora:latest
stage: deploy
variables:
# abi-dumper complains if we don't pass -Og
CXXFLAGS: "-Og -g3 -gstrict-dwarf"
CFLAGS: "-Og -g3 -gstrict-dwarf"
# enabling curl is broken on 0.27
CMAKE_FLAGS: "-DEXIV2_ENABLE_VIDEO=ON -DEXIV2_ENABLE_WEBREADY=ON -DBUILD_WITH_CCACHE=ON -DEXIV2_ENABLE_CURL=OFF -DEXIV2_ENABLE_SSH=ON"
<<: *default_config
script:
- dnf -y install abi-compliance-checker abi-dumper git
- mkdir build-latest && pushd build-latest
- cmake ${CMAKE_FLAGS} ..
- make -j $(nproc)
- abi-dumper lib/libexiv2.so -o ../ABI-1.dump -lver latest
- popd
- git checkout -f 0.27
- mkdir build-0.27 && pushd build-0.27
- cmake ${CMAKE_FLAGS} ..
- make -j $(nproc)
- abi-dumper lib/libexiv2.so -o ../ABI-0.dump -lver 0.27.0
- popd
- abi-compliance-checker -l libexiv2 -old ABI-0.dump -new ABI-1.dump
artifacts:
paths:
- compat_reports/

Install:
image: fedora:latest
stage: deploy
Expand Down

0 comments on commit a02f38e

Please sign in to comment.