2 DEBIAN_FRONTEND: noninteractive
5 DOCKER_CMD: docker --config="$HOME/.docker/$CI_JOB_ID/"
6 IMG_BASE: registry.nic.cz/labs/bird
7 TOOLS_DIR: /var/lib/gitlab-runner/bird-tools
15 .docker: &docker_build
19 - $DOCKER_CMD login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.nic.cz
20 # Make sure we refresh the base image if it updates (eg. security updates, etc)
21 # If we do just the build, cache is always reused and the freshness of the
22 # base image is never checked. However, pull always asks and updates the
23 # image only if it changed ‒ therefore, the cache is used unless there's a
25 - $DOCKER_CMD pull `sed -ne 's/^FROM //p' "misc/docker/$IMG_NAME/Dockerfile"`
26 - $DOCKER_CMD build -t "bird:$IMG_NAME" "misc/docker/$IMG_NAME"
27 - $DOCKER_CMD tag "bird:$IMG_NAME" "$IMG_BASE:$IMG_NAME"
28 - $DOCKER_CMD push "$IMG_BASE:$IMG_NAME"
30 - rm -f "$HOME/.docker/$CI_JOB_ID/" # cleanup the credentials
32 # That's Docker in Docker
35 docker_debian-8-amd64:
37 IMG_NAME: "debian-8-amd64"
42 IMG_NAME: "debian-8-i386"
45 docker_debian-9-amd64:
47 IMG_NAME: "debian-9-amd64"
52 IMG_NAME: "debian-9-i386"
55 docker_debian-10-amd64:
57 IMG_NAME: "debian-10-amd64"
60 docker_debian-10-i386:
62 IMG_NAME: "debian-10-i386"
65 docker_debian-11-amd64:
67 IMG_NAME: "debian-11-amd64"
71 #docker_debian-11-i386:
73 # IMG_NAME: "debian-11-i386"
76 docker_debian-testing-amd64:
78 IMG_NAME: "debian-testing-amd64"
82 #docker_debian-testing-i386:
84 # IMG_NAME: "debian-testing-i386"
87 docker_fedora-25-amd64:
89 IMG_NAME: "fedora-25-amd64"
92 docker_fedora-26-amd64:
94 IMG_NAME: "fedora-26-amd64"
97 docker_fedora-27-amd64:
99 IMG_NAME: "fedora-27-amd64"
102 docker_fedora-28-amd64:
104 IMG_NAME: "fedora-28-amd64"
107 docker_fedora-29-amd64:
109 IMG_NAME: "fedora-29-amd64"
112 docker_fedora-30-amd64:
114 IMG_NAME: "fedora-30-amd64"
117 docker_fedora-31-amd64:
119 IMG_NAME: "fedora-31-amd64"
122 docker_fedora-32-amd64:
124 IMG_NAME: "fedora-32-amd64"
127 docker_fedora-33-amd64:
129 IMG_NAME: "fedora-33-amd64"
132 docker_fedora-34-amd64:
134 IMG_NAME: "fedora-34-amd64"
137 docker_centos-7-amd64:
139 IMG_NAME: "centos-7-amd64"
142 docker_centos-8-amd64:
144 IMG_NAME: "centos-8-amd64"
147 docker_ubuntu-14_04-amd64:
149 IMG_NAME: "ubuntu-14.04-amd64"
152 docker_ubuntu-16_04-amd64:
154 IMG_NAME: "ubuntu-16.04-amd64"
157 docker_ubuntu-18_04-amd64:
159 IMG_NAME: "ubuntu-18.04-amd64"
162 docker_ubuntu-20_04-amd64:
164 IMG_NAME: "ubuntu-20.04-amd64"
167 docker_ubuntu-21_10-amd64:
169 IMG_NAME: "ubuntu-21.10-amd64"
173 #docker_ubuntu-21_04-amd64:
175 # IMG_NAME: "ubuntu-21.04-amd64"
178 docker_opensuse-15.0-amd64:
180 IMG_NAME: "opensuse-15.0-amd64"
183 docker_opensuse-15.1-amd64:
185 IMG_NAME: "opensuse-15.1-amd64"
188 docker_opensuse-15.2-amd64:
190 IMG_NAME: "opensuse-15.2-amd64"
193 docker_opensuse-15.3-amd64:
195 IMG_NAME: "opensuse-15.3-amd64"
198 # TODO We want to copy these BSDs to our own virtual machines, to make sure
199 # someone doesn't update them by accident.
200 .freebsd-11-i386: &freebsd-11-i386_env
209 .freebsd-11-amd64: &freebsd-11-amd64_env
219 - ./configure CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
220 # Detect which make is available
222 - which gmake 2>/dev/null >/dev/null && MAKE=gmake
225 # Build docs when tools are available
226 - if which linuxdoc pdflatex >/dev/null ; then $MAKE docs ; fi
228 .build-linux: &build-linux
235 build-debian-8-amd64:
237 image: registry.nic.cz/labs/bird:debian-8-amd64
241 image: registry.nic.cz/labs/bird:debian-8-i386
243 build-debian-9-amd64:
245 image: registry.nic.cz/labs/bird:debian-9-amd64
249 image: registry.nic.cz/labs/bird:debian-9-i386
251 build-debian-10-amd64:
253 image: registry.nic.cz/labs/bird:debian-10-amd64
255 build-debian-10-i386:
257 image: registry.nic.cz/labs/bird:debian-10-i386
259 build-debian-11-amd64:
261 image: registry.nic.cz/labs/bird:debian-11-amd64
263 #build-debian-11-i386:
265 # image: registry.nic.cz/labs/bird:debian-11-i386
267 build-debian-testing-amd64:
269 image: registry.nic.cz/labs/bird:debian-testing-amd64
271 #build-debian-testing-i386:
273 # image: registry.nic.cz/labs/bird:debian-testing-i386
275 build-fedora-25-amd64:
277 image: registry.nic.cz/labs/bird:fedora-25-amd64
279 build-fedora-26-amd64:
281 image: registry.nic.cz/labs/bird:fedora-26-amd64
283 build-fedora-27-amd64:
285 image: registry.nic.cz/labs/bird:fedora-27-amd64
287 build-fedora-28-amd64:
289 image: registry.nic.cz/labs/bird:fedora-28-amd64
291 build-fedora-29-amd64:
293 image: registry.nic.cz/labs/bird:fedora-29-amd64
295 build-fedora-30-amd64:
297 image: registry.nic.cz/labs/bird:fedora-30-amd64
299 build-fedora-31-amd64:
301 image: registry.nic.cz/labs/bird:fedora-31-amd64
303 build-fedora-32-amd64:
305 image: registry.nic.cz/labs/bird:fedora-32-amd64
307 build-fedora-33-amd64:
309 image: registry.nic.cz/labs/bird:fedora-33-amd64
311 build-fedora-34-amd64:
313 image: registry.nic.cz/labs/bird:fedora-33-amd64
315 build-centos-7-amd64:
317 image: registry.nic.cz/labs/bird:centos-7-amd64
319 build-centos-8-amd64:
321 image: registry.nic.cz/labs/bird:centos-8-amd64
323 build-ubuntu-14_04-amd64:
325 image: registry.nic.cz/labs/bird:ubuntu-14.04-amd64
327 build-ubuntu-16_04-amd64:
329 image: registry.nic.cz/labs/bird:ubuntu-16.04-amd64
331 build-ubuntu-18_04-amd64:
333 image: registry.nic.cz/labs/bird:ubuntu-18.04-amd64
335 build-ubuntu-20_04-amd64:
337 image: registry.nic.cz/labs/bird:ubuntu-20.04-amd64
339 build-ubuntu-21_10-amd64:
341 image: registry.nic.cz/labs/bird:ubuntu-21.10-amd64
343 #build-ubuntu-21_04-amd64:
345 # image: registry.nic.cz/labs/bird:ubuntu-21.04-amd64
347 build-opensuse-15.0-amd64:
349 image: registry.nic.cz/labs/bird:opensuse-15.0-amd64
351 build-opensuse-15.1-amd64:
353 image: registry.nic.cz/labs/bird:opensuse-15.1-amd64
355 build-opensuse-15.2-amd64:
357 image: registry.nic.cz/labs/bird:opensuse-15.2-amd64
359 build-opensuse-15.3-amd64:
361 image: registry.nic.cz/labs/bird:opensuse-15.3-amd64
363 build-freebsd-11-amd64:
369 build-freebsd-11-i386:
381 #- apkg install -y pkg/pkgs/*/*/*.deb
391 #- apkg install -y pkg/pkgs/*/*/*.rpm
396 .pkg-rpm-wa: &pkg-rpm-wa
399 - sed -i "s/runstatedir/with-runtimedir/" distro/pkg/rpm/bird.spec
402 #- apkg install -y pkg/pkgs/*/*/*.rpm
407 # Dpkg error: PATH is not set
410 # needs: [build-debian-8-amd64]
411 # image: registry.nic.cz/labs/bird:debian-8-amd64
413 # Dpkg error: PATH is not set
416 # needs: [build-debian-8-i386]
417 # image: registry.nic.cz/labs/bird:debian-8-i386
419 # Dpkg error: PATH is not set
422 needs: [build-debian-9-amd64]
423 image: registry.nic.cz/labs/bird:debian-9-amd64
425 # Dpkg error: PATH is not set
428 needs: [build-debian-9-i386]
429 image: registry.nic.cz/labs/bird:debian-9-i386
433 needs: [build-debian-10-amd64]
434 image: registry.nic.cz/labs/bird:debian-10-amd64
438 needs: [build-debian-10-i386]
439 image: registry.nic.cz/labs/bird:debian-10-i386
443 needs: [build-debian-11-amd64]
444 image: registry.nic.cz/labs/bird:debian-11-amd64
448 needs: [build-fedora-30-amd64]
449 image: registry.nic.cz/labs/bird:fedora-30-amd64
453 needs: [build-fedora-31-amd64]
454 image: registry.nic.cz/labs/bird:fedora-31-amd64
458 needs: [build-fedora-32-amd64]
459 image: registry.nic.cz/labs/bird:fedora-32-amd64
463 needs: [build-fedora-33-amd64]
464 image: registry.nic.cz/labs/bird:fedora-33-amd64
468 needs: [build-fedora-34-amd64]
469 image: registry.nic.cz/labs/bird:fedora-34-amd64
475 needs: [build-centos-7-amd64]
476 image: registry.nic.cz/labs/bird:centos-7-amd64
480 needs: [build-centos-8-amd64]
481 image: registry.nic.cz/labs/bird:centos-8-amd64
483 pkg-ubuntu-18.04-amd64:
485 needs: [build-ubuntu-18_04-amd64]
486 image: registry.nic.cz/labs/bird:ubuntu-18.04-amd64
488 pkg-ubuntu-20.04-amd64:
490 needs: [build-ubuntu-20_04-amd64]
491 image: registry.nic.cz/labs/bird:ubuntu-20.04-amd64
494 pkg-ubuntu-21.10-amd64:
496 needs: [build-ubuntu-21_10-amd64]
497 image: registry.nic.cz/labs/bird:ubuntu-21.10-amd64
499 #pkg-ubuntu-21.04-amd64:
501 # needs: [build-ubuntu-21_04-amd64]
502 # image: registry.nic.cz/labs/bird:ubuntu-21.04-amd64
504 pkg-opensuse-15.1-amd64:
506 needs: [build-opensuse-15.1-amd64]
507 image: registry.nic.cz/labs/bird:opensuse-15.1-amd64
509 pkg-opensuse-15.2-amd64:
511 needs: [build-opensuse-15.2-amd64]
512 image: registry.nic.cz/labs/bird:opensuse-15.2-amd64
514 pkg-opensuse-15.3-amd64:
516 needs: [build-opensuse-15.3-amd64]
517 image: registry.nic.cz/labs/bird:opensuse-15.3-amd64
533 - mv $DIR/bird $DIR/birdc netlab/common
537 needs: [build-birdlab]
542 - cd $TOOLS_DIR/netlab
544 - sudo ./runtest -m check $TEST_NAME
549 TEST_NAME: cf-ospf-base
554 TEST_NAME: cf-ospf-default
559 TEST_NAME: cf-ospf-priority
564 TEST_NAME: cf-ospf-nbma
569 TEST_NAME: cf-ospf-ptmp
571 test-ospf-authentication:
574 TEST_NAME: cf-ospf-authentication
579 TEST_NAME: cf-ospf-bfd
584 TEST_NAME: cf-ospf-custom
589 TEST_NAME: cf-ospf-area
594 TEST_NAME: cf-ospf-vrf
599 TEST_NAME: cf-bgp-base
604 TEST_NAME: cf-bgp-auth
609 TEST_NAME: cf-bgp-int
614 TEST_NAME: cf-bgp-merged
619 TEST_NAME: cf-ebgp-loop
624 TEST_NAME: cf-ebgp-star
629 TEST_NAME: cf-ibgp-loop
634 TEST_NAME: cf-ibgp-flat
639 TEST_NAME: cf-babel-base
644 TEST_NAME: cf-babel-auth
649 TEST_NAME: cf-rip-base