stage: build
script:
- export BRANCH=$CI_COMMIT_BRANCH
+ - tools/version && ( echo -n "BIRD version "; tools/version ) > version-expected
+ - |
+ STABLE_VERSION="`cat VERSION`"
+ if [ "$CI_COMMIT_MESSAGE" == "NEWS and version update
+ " ]; then
+ if [ "${STABLE_VERSION}" == "`tools/version`" ]; then
+ echo "Stable version precheck OK"
+ else
+ echo "Stable version discrepancy: $STABLE_VERSION vs. $(tools/version)"
+ exit 1
+ fi
+ else
+ if grep -qF "BIRD version ${STABLE_VERSION}+branch" version-expected; then
+ true
+ else
+ echo -n "Commit $CI_COMMIT_SHA message $CI_COMMIT_MESSAGE expects version "
+ cat version-expected
+ exit 1
+ fi
+ fi
- autoreconf
- ./configure CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" $CONFIGURE_OPTIONS
# Detect which make is available
- $MAKE check
# Build docs when tools are available
- if which linuxdoc pdflatex sgmlsasp >/dev/null ; then $MAKE docs ; fi
+ # Check that the reported version is the right one
+ - ./bird --version |& tee obj/version-built
+ - diff obj/version-built version-expected
.build-docker-linux-amd64: &build-docker-linux-amd64
<<: *build-base
## Non-linux build tests in QEMU ##
###################################
.build-birdlab-base: &build-birdlab-base
- <<: *test-job
+ <<: *build-base
stage: build
- script:
- - export BRANCH=$CI_COMMIT_BRANCH
- - autoreconf
- - ./configure $CONFIGURE_OPTIONS
- - gmake
- - gmake check
+# script:
+# - export BRANCH=$CI_COMMIT_BRANCH
+# - autoreconf
+# - ./configure $CONFIGURE_OPTIONS
+# - gmake
+# - gmake check
build-birdlab-openbsd-75:
stage: build
script:
- export BRANCH=$CI_COMMIT_BRANCH
+ - tools/version && ( echo -n "BIRD version "; tools/version ) > version-expected
+ - |
+ STABLE_VERSION="`cat VERSION`"
+ if [ "$CI_COMMIT_MESSAGE" == "NEWS and version update
+ " ]; then
+ if [ "${STABLE_VERSION}" == "`tools/version`" ]; then
+ echo "Stable version precheck OK"
+ else
+ echo "Stable version discrepancy: $STABLE_VERSION vs. $(tools/version)"
+ exit 1
+ fi
+ else
+ if grep -qF "BIRD version ${STABLE_VERSION}+branch" version-expected; then
+ true
+ else
+ echo -n "Commit $CI_COMMIT_SHA message $CI_COMMIT_MESSAGE expects version "
+ cat version-expected
+ exit 1
+ fi
+ fi
- autoreconf
- ./configure CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" $CONFIGURE_OPTIONS
# Detect which make is available
- $MAKE check
# Build docs when tools are available
- if which linuxdoc pdflatex sgmlsasp >/dev/null ; then $MAKE docs ; fi
+ # Check that the reported version is the right one
+ - ./bird --version |& tee obj/version-built
+ - diff obj/version-built version-expected
.build-docker-linux-amd64: &build-docker-linux-amd64
<<: *build-base
## Non-linux build tests in QEMU ##
###################################
.build-birdlab-base: &build-birdlab-base
- <<: *test-job
+ <<: *build-base
stage: build
- script:
- - export BRANCH=$CI_COMMIT_BRANCH
- - autoreconf
- - ./configure $CONFIGURE_OPTIONS
- - gmake
- - gmake check
+# script:
+# - export BRANCH=$CI_COMMIT_BRANCH
+# - autoreconf
+# - ./configure $CONFIGURE_OPTIONS
+# - gmake
+# - gmake check
{% for test in birdlab %}
build-birdlab-{{ test['name'] }}: