Commit 0da9a79f authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Merge branch 'gitlab-rpm' into 'master'

Add build recipes for Fedora and CentOS to .gitlab-ci.yml

See merge request !777
parents 1d46617a 2f3cde4b
Pipeline #11630 passed with stages
in 24 minutes and 14 seconds
......@@ -27,17 +27,51 @@ stages:
- triggers
- tags
.build_depends: &build_depends
.dnf_build_depends: &dnf_build_depends
before_script:
- sed -i 's/deb\.debian\.org/ftp.cz.debian.org/g;s/archive\.ubuntu\.com/cz.archive.ubuntu.com/g' /etc/apt/sources.list
- apt-get -qqy update
- apt-get -qqy dist-upgrade
- apt-get -qqy install build-essential
- apt-get -qqy install ghostscript python-sphinx texinfo texlive texlive-font-utils texlive-generic-extra texlive-latex-extra
- apt-get -qqy install autoconf automake libtool autotools-dev bash-completion bison flex libedit-dev libfstrm-dev libgnutls28-dev libidn2-0-dev liblmdb-dev libprotobuf-c-dev libsystemd-dev libsystemd-dev liburcu-dev pkg-config protobuf-c-compiler
- dnf -y upgrade
- dnf -y install 'dnf-command(builddep)' -y
- dnf -y install curl
- curl -L http://pkgs.fedoraproject.org/cgit/rpms/knot.git/plain/knot.spec -o knot.spec
- dnf -y builddep knot.spec
- dnf -y install autoconf automake libtool pkgconfig
.yum_build_depends: &yum_build_depends
before_script:
- yum -y upgrade
- yum -y install epel-release
- yum -y install curl
- curl -L http://pkgs.fedoraproject.org/cgit/rpms/knot.git/plain/knot.spec -o knot.spec
- yum-builddep knot.spec -y
- yum -y install autoconf automake libtool pkgconfig
.fedora_latest: &fedora_latest
<<: *dnf_build_depends
image: fedora:latest
tags:
- docker
- linux
- amd64
.centos_latest: &centos_latest
<<: *yum_build_depends
image: centos:latest
tags:
- docker
- linux
- amd64
.deb_build_depends: &deb_build_depends
before_script:
- sed -i 's/deb\.debian\.org/ftp.cz.debian.org/g' /etc/apt/sources.list
- apt-get -y update
- apt-get -y dist-upgrade
- apt-get -y install build-essential
- apt-get -y install ghostscript python-sphinx texinfo texlive texlive-font-utils texlive-generic-extra texlive-latex-extra
- apt-get -y install autoconf automake libtool autotools-dev bash-completion bison flex libedit-dev libfstrm-dev libgnutls28-dev libidn2-0-dev liblmdb-dev libprotobuf-c-dev libsystemd-dev libsystemd-dev liburcu-dev pkg-config protobuf-c-compiler
.debian_stable: &debian_stable
<<: *build_depends
<<: *deb_build_depends
image: debian:stable-slim
tags:
- docker
......@@ -45,7 +79,7 @@ stages:
- amd64
.ubuntu_latest: &ubuntu_latest
<<: *build_depends
<<: *deb_build_depends
image: ubuntu:latest
tags:
- docker
......@@ -67,6 +101,26 @@ stages:
script:
- make -k check
build:fedora:amd64:
<<: *fedora_latest
<<: *build_job
test:fedora:amd64:
<<: *fedora_latest
<<: *test_job
dependencies:
- build:fedora:amd64
build:centos:amd64:
<<: *centos_latest
<<: *build_job
test:centos:amd64:
<<: *centos_latest
<<: *test_job
dependencies:
- build:centos:amd64
build:ubuntu:amd64:
<<: *ubuntu_latest
<<: *build_job
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment