diff options
| author | Michael Biebl <biebl@debian.org> | 2025-09-12 19:47:07 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2025-09-12 19:47:07 +0200 |
| commit | bc5f10851bffd6af1c2855635be7a28b6dba3195 (patch) | |
| tree | d47255895378efcdc0a32c2ddeed055f76935654 /.gitlab-ci | |
| parent | 7e9091a5960f67a84787c03153324915220e4816 (diff) | |
New upstream version 1.54.1 upstream/1.54.1
Diffstat (limited to '.gitlab-ci')
| -rw-r--r-- | .gitlab-ci/config.yml | 32 | ||||
| -rwxr-xr-x | .gitlab-ci/fedora-install.sh | 7 | ||||
| -rwxr-xr-x | .gitlab-ci/run-test.sh | 13 |
3 files changed, 26 insertions, 26 deletions
diff --git a/.gitlab-ci/config.yml b/.gitlab-ci/config.yml index 526339e2..b99c1673 100644 --- a/.gitlab-ci/config.yml +++ b/.gitlab-ci/config.yml @@ -23,52 +23,38 @@ distributions: - name: fedora tier: 1 versions: - - '42' + - '43' # TIER 2: distribution versions that will or might use the current NM version. # Run when doing a release. - - name: fedora - tier: 2 - versions: - - 'rawhide' - - name: centos - tier: 2 - versions: - - 'stream9' - - name: ubuntu - tier: 2 - versions: - - 'devel' - - name: debian - tier: 2 - versions: - - 'testing' - - 'sid' - - name: alpine - tier: 2 - versions: - - 'edge' # TIER 3: distribution versions not in EOL but don't use the current NM version. # Run when doing a release, but a failure won't be blocking for the release. - name: fedora tier: 3 versions: + - '42' - '41' - name: ubuntu tier: 3 versions: - '25.04' - - '24.10' - '24.04' - '22.04' - name: debian tier: 3 versions: + - '13' - '12' - name: alpine tier: 3 versions: + - '3.22' - '3.21' - '3.20' - '3.19' + - name: centos + tier: 3 + versions: + - 'stream10' + - 'stream9' diff --git a/.gitlab-ci/fedora-install.sh b/.gitlab-ci/fedora-install.sh index 50f9710f..8f49d969 100755 --- a/.gitlab-ci/fedora-install.sh +++ b/.gitlab-ci/fedora-install.sh @@ -13,6 +13,8 @@ if [ $IS_CENTOS = 1 ]; then CENTOS_VERSION=8 elif grep -q '^VERSION_ID=.*\<9\>' /etc/os-release ; then CENTOS_VERSION=9 + elif grep -q '^VERSION_ID=.*\<10\>' /etc/os-release ; then + CENTOS_VERSION=10 else exit 1 fi @@ -33,6 +35,11 @@ fi dnf install -y 'dnf-command(config-manager)' dnf config-manager --set-enabled crb curl https://copr.fedorainfracloud.org/coprs/nmstate/nm-build-deps/repo/epel-9/nmstate-nm-build-deps-epel-9.repo > /etc/yum.repos.d/nmstate-nm-build-deps-epel-9.repo + elif [ "$CENTOS_VERSION" = stream10 ]; then + dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm + dnf install -y 'dnf-command(config-manager)' + dnf config-manager --set-enabled crb + curl https://copr.fedorainfracloud.org/coprs/nmstate/nm-build-deps/repo/epel-10/nmstate-nm-build-deps-epel-10.repo > /etc/yum.repos.d/nmstate-nm-build-deps-epel-10.repo else exit 1 fi diff --git a/.gitlab-ci/run-test.sh b/.gitlab-ci/run-test.sh index 265dbd54..44405558 100755 --- a/.gitlab-ci/run-test.sh +++ b/.gitlab-ci/run-test.sh @@ -17,10 +17,17 @@ grep -q '^NAME=.*\(CentOS\)' /etc/os-release && IS_CENTOS=1 grep -q '^NAME=.*\(Fedora\)' /etc/os-release && IS_FEDORA=1 grep -q '^NAME=.*\(Alpine\)' /etc/os-release && IS_ALPINE=1 -IS_CENTOS_7=0 if [ $IS_CENTOS = 1 ]; then - if grep -q '^VERSION_ID=.*\<7\>' /etc/os-release ; then - IS_CENTOS_7=1 + CENTOS_VER_LINE="$(grep '^VERSION_ID=' /etc/os-release)" + if [[ $CENTOS_VER_LINE =~ ^VERSION_ID=\"?([0-9]+)\"?$ ]]; then + CENTOS_VER="${BASH_REMATCH[1]}" + else + echo "Error detecting CentOS Stream version" >&2 + exit 1 + fi + + if (( $CENTOS_VER >= 10 )); then + export WITH_LIBTEAM=0 fi fi |