]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
CI: test building single protocols 40-ci-singleproto
authorMaria Matejka <mq@ucw.cz>
Tue, 3 Dec 2024 16:27:09 +0000 (17:27 +0100)
committerMaria Matejka <mq@ucw.cz>
Tue, 17 Dec 2024 08:01:26 +0000 (09:01 +0100)
Several users build BIRD with excluded support for protocols they don't
need. Testing single-protocol builds; the assumption is that if single
protocols and all protocols are buildable, then possibly any reasonable
combination is buildable as well.

.gitlab-ci.yml

index 43f517cb044fbfe29d21595508b42f042b1cbc99..1a10171827f132124a123394dee1dd411b3a201a 100644 (file)
@@ -44,7 +44,7 @@ stages:
   stage: build
   script:
   - autoreconf
-  - ./configure CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
+  - ./configure CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" $CONFIGURE_OPTIONS
   # Detect which make is available
   - MAKE=make
   - which gmake 2>/dev/null >/dev/null && MAKE=gmake
@@ -188,6 +188,119 @@ build-opensuse-15.3-amd64:
 #    - freebsd
 #    - i386
 
+build-only-aggregator-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=aggregator
+
+build-only-babel-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=babel
+
+build-only-bgp-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=bgp
+
+build-only-bgp-bfd-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=bgp,bfd
+
+build-only-bgp-bmp-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=bgp,bmp
+
+build-only-bgp-bmp-bfd-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=bgp,bmp,bfd
+
+build-only-l3vpn-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=l3vpn
+
+build-only-bgp-mrt-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=bgp,mrt
+
+build-only-bgp-mrt-bfd-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=bgp,mrt,bfd
+
+build-only-bgp-mrt-bmp-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=bgp,mrt,bmp
+
+build-only-bgp-mrt-bmp-bfd-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=bgp,mrt,bmp,bfd
+
+build-only-ospf-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=ospf
+
+build-only-ospf-bfd-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=ospf,bfd
+
+build-only-pipe-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=pipe
+
+build-only-radv-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=radv
+
+build-only-rip-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=rip
+
+build-only-rip-bfd-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=rip,bfd
+
+build-only-rpki-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=rpki
+
+build-only-static-amd64:
+  <<: *build-linux
+  image: registry.nic.cz/labs/bird:debian-11-amd64
+  variables:
+    CONFIGURE_OPTIONS: --with-protocols=static
 
 .pkg-deb: &pkg-deb
   stage: pkg