]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
ci: check debian symbols in CI
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 31 Jul 2018 10:05:14 +0000 (12:05 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Thu, 2 Aug 2018 11:38:00 +0000 (13:38 +0200)
.gitlab-ci.yml

index 085a529f4a0ae017314a2dac4e805d7120bc780c..f839c631c964ee2870c8fea82cd383c027529b20 100644 (file)
@@ -139,6 +139,19 @@ docker:knot-dns:fedora:
   except:
     - schedules
 
+.pkg_symbols: &pkg_symbols
+  stage: test
+  script:
+    - ln -s distro/deb debian
+    - sed -i "s/__VERSION__/99/g" distro/deb/changelog
+    - dpkg-gensymbols -c4 -esrc/.libs/$LIB_NAME.so.$LIB_ABI -P. -p$LIB_NAME$LIB_ABI
+  allow_failure: true
+  except:
+  only:
+    - schedules
+  dependencies:
+    - build:debian:amd64
+
 build:fedora:amd64:
   <<: *fedora_latest
   <<: *build_job
@@ -172,6 +185,7 @@ test:ubuntu:amd64:
 build:debian:amd64:
   <<: *debian_stable
   <<: *build_job
+  except:  # run on schedules as well, for debian:symbols tests
 
 test:debian:amd64:
   <<: *debian_stable
@@ -179,6 +193,27 @@ test:debian:amd64:
   dependencies:
     - build:debian:amd64
 
+pkg:debian:symbols:libknot:
+  variables:
+    LIB_NAME: libknot
+    LIB_ABI: 8
+  <<: *debian_stable
+  <<: *pkg_symbols
+
+pkg:debian:symbols:libdnssec:
+  variables:
+    LIB_NAME: libdnssec
+    LIB_ABI: 6
+  <<: *debian_stable
+  <<: *pkg_symbols
+
+pkg:debian:symbols:libzscanner:
+  variables:
+    LIB_NAME: libzscanner
+    LIB_ABI: 2
+  <<: *debian_stable
+  <<: *pkg_symbols
+
 build:debian:unstable:amd64:
   <<: *debian_unstable
   <<: *build_job