]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: create rpm packages for Fedora/EPEL
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 19 Feb 2018 09:37:46 +0000 (10:37 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 27 Feb 2018 16:50:21 +0000 (17:50 +0100)
.gitlab-ci.yml

index 1ae0bdf56bb7b4e6c1b9d68973bb07b9db3883ac..2a259eb81137cc1d0b54734bcdc51ca832e949a3 100644 (file)
@@ -35,6 +35,22 @@ build:clang:linux:amd64:
     - linux
     - amd64
 
+srpm:
+  stage: build
+  allow_failure: true  # don't block testing pipeline in case of failure
+  image: $CI_REGISTRY/knot/knot-resolver/ci:fedora-27
+  script:
+    - scripts/make-srpm.sh
+  artifacts:
+    when: always
+    expire_in: '1 week'
+    paths:
+      - "*.src.rpm"
+  tags:
+    - docker
+    - linux
+    - amd64
+
 lint:lua:
   stage: test
   dependencies: []  # do not download build artifacts
@@ -258,6 +274,40 @@ respdiff:iter:tls:linux:amd64:
     - linux
     - amd64
 
+distro:fedora-27:
+  stage: test
+  image: $CI_REGISTRY/knot/knot-resolver/ci:fedora-27
+  dependencies:
+    - srpm
+  script:
+    - mock --old-chroot -r fedora-27-x86_64 --rebuild *.src.rpm
+  after_script:
+    - mv /var/lib/mock/fedora-27-x86_64/result fedora-27-x86_64
+  artifacts:
+    when: always
+    expire_in: '1 week'
+    paths:
+      - fedora-27-x86_64/
+  tags:
+    - privileged
+
+distro:epel-7:
+  stage: test
+  image: $CI_REGISTRY/knot/knot-resolver/ci:fedora-27
+  dependencies:
+    - srpm
+  script:
+    - mock --dnf --old-chroot -r epel-7-x86_64 --rebuild *.src.rpm
+  after_script:
+    - mv /var/lib/mock/epel-7-x86_64/result epel-7-x86_64
+  artifacts:
+    when: always
+    expire_in: '1 week'
+    paths:
+      - epel-7-x86_64/
+  tags:
+    - privileged
+
 # compute coverage for all runs
 coverage:
   stage: coverage