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 Jul 3, 2019
1 parent e3e4b9e commit 19eddf9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,36 @@ OpenSUSE:
<<: *default_config
<<: *distro_build

ABI_compliance_check:
# FIXME: update this to fedora:latest, once
# https://bugzilla.redhat.com/show_bug.cgi?id=1726719 lands
image: fedora:29
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 19eddf9

Please sign in to comment.