From f6ae2ea15063e62cdf67835c98af5a730e31fe7a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 22 Nov 2022 20:59:00 -0800 Subject: [PATCH] CI: add Fedora 37 jobs These replicate the previous Fedora 36 jobs. --- .gitlab-ci.yml | 65 ++++++++++++++++++++++++++++++++++ ci/fedora37/Dockerfile | 80 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 145 insertions(+) create mode 100644 ci/fedora37/Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 954c850f3..989eb6c48 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -292,6 +292,18 @@ fedora36-build: variables: IMAGE: fedora36 +fedora37-build: + <<: *rpm_build_definition + needs: + - job: docker_build_fedora37 + artifacts: false + - job: portable-source + artifacts: true + tags: + - linux + variables: + IMAGE: fedora37 + ubuntu-18.04-build: <<: *deb_build_definition needs: @@ -860,6 +872,22 @@ fedora36-cmake-build: variables: IMAGE: fedora36 +fedora37-cmake-build: + <<: *rpm_build_definition + needs: + - job: docker_build_fedora37 + artifacts: false + before_script: + - export build_system="cmake" + # fail on any compiler warnings + - export CFLAGS=-Werror + - export CXXFLAGS=-Werror + - export CMAKE_OPTIONS="-Dwith_smyrna=ON" + tags: + - linux + variables: + IMAGE: fedora37 + macos-cmake-build: <<: *macos_build_definition before_script: @@ -1096,6 +1124,18 @@ fedora36-test: variables: IMAGE: fedora36 +fedora37-test: + <<: *linux_test_definition + before_script: + - export build_system="autotools" + needs: + - job: "fedora37-build" + artifacts: true + tags: + - linux + variables: + IMAGE: fedora37 + macos-autotools-test: <<: *test_definition before_script: @@ -1227,6 +1267,19 @@ fedora36-cmake-test: variables: IMAGE: fedora36 +fedora37-cmake-test: + <<: *linux_test_definition + before_script: + - export build_system="cmake" + - python3 gen_version.py --output GRAPHVIZ_VERSION + needs: + - job: "fedora37-cmake-build" + artifacts: true + tags: + - linux + variables: + IMAGE: fedora37 + macos-cmake-test: <<: *test_definition before_script: @@ -1376,6 +1429,11 @@ docker_build_fedora36: variables: IMAGE: fedora36 +docker_build_fedora37: + <<: *docker_build_definition + variables: + IMAGE: fedora37 + docker_build_ubuntu-18.04: <<: *docker_build_definition variables: @@ -1417,6 +1475,13 @@ docker_push_fedora36: needs: - docker_build_fedora36 +docker_push_fedora37: + <<: *docker_push_definition + variables: + IMAGE: fedora37 + needs: + - docker_build_fedora37 + docker_push_ubuntu-18.04: <<: *docker_push_definition variables: diff --git a/ci/fedora37/Dockerfile b/ci/fedora37/Dockerfile new file mode 100644 index 000000000..af1dd29be --- /dev/null +++ b/ci/fedora37/Dockerfile @@ -0,0 +1,80 @@ +FROM fedora:37 + +COPY requirements.txt ./requirements.txt + +# Development tools +RUN yum -y groupinstall 'Development Tools' \ +&& yum -y install rpm-build \ +bison \ +byacc \ +flex \ +# Centos build utilities +libtool-ltdl-devel \ +libedit-devel \ +ksh \ +cmake \ +# Option xpat +expat-devel \ +# Option glut +freeglut-devel \ +# Option ann +ann-devel \ +# Option gts +gts-devel \ +# Option swig +swig \ +# Command smyra +# Command gvedit +qt5-qtbase-devel \ +ncurses-devel \ +# Plugin library devil +DevIL-devel \ +# Plugin library gd +gd-devel \ +# Documentation and Plugin library ghostscipt +ghostscript ghostscript-devel \ +# Plugin library gtk +gtkglext-devel \ +# Plugin library lasi +lasi-devel \ +# Plugin library poppler +poppler-glib-devel \ +poppler-qt5 \ +# Plugin library rsvg +librsvg2-devel \ +# Language extension gv_go +golang \ +gcc-go \ +# Language extension gv_guile +guile-devel \ +# Language extension gv_java +java-devel \ +# Language extension gv_lua +lua-devel \ +# Language extension gv_ocaml +ocaml \ +# Language extension gv_perl +perl \ +perl-ExtUtils-Embed \ +# Language extension gv_php +php-devel \ +# Language extension gv_python3 +python3-devel \ +# Language extension gv_R +R \ +R-devel \ +# Language extension gv_ruby +ruby-devel \ +# Language extension gv_tcl +# Required in redhat/graphviz.spec.fedora.in +libXaw-devel \ +libglade2-devel \ +mono-core \ +# Test utilities +python3-pip \ +python3-setuptools \ +# install Python dependencies +&& python3 -m pip install --user --upgrade pip \ +&& python3 -m pip install --user --requirement requirements.txt \ +# Clean up +&& yum clean all && rm -rf /var/cache/yum -- 2.40.0