summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-02-01 18:16:27 +0100
committerlouiz’ <louiz@louiz.org>2017-02-01 18:16:27 +0100
commit5eb5e9e0afb996a74bb3a5f2c5fb8b66573aec3c (patch)
treee653d2fb496007e0aa927d7f6a6548cc6f7e5997
parenta5d35c2455d9e3e5724c9a906deb1b58e5a5f87b (diff)
downloadbiboumi-5eb5e9e0afb996a74bb3a5f2c5fb8b66573aec3c.tar.gz
biboumi-5eb5e9e0afb996a74bb3a5f2c5fb8b66573aec3c.tar.bz2
biboumi-5eb5e9e0afb996a74bb3a5f2c5fb8b66573aec3c.tar.xz
biboumi-5eb5e9e0afb996a74bb3a5f2c5fb8b66573aec3c.zip
ci: add a packaging:debian job, based on the debian branch
-rw-r--r--.gitlab-ci.yml58
1 files changed, 40 insertions, 18 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d03a47f..33f699d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,8 @@
+stages:
+ - build
+ - test
+ - packaging
+
before_script:
- uname -a
- locale
@@ -64,24 +69,6 @@ build:6:
UDNS: "-DWITHOUT_UDNS=1"
<<: *basic_build
-build:rpm:
- stage: build
- only:
- - master@louiz/biboumi
- tags:
- - docker
- image: docker.louiz.org/biboumi-test-fedora:latest
- script:
- - cmake .. -DCMAKE_CXX_COMPILER=${COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${BOTAN} ${UDNS} ${SYSTEMD} ${LIBIDN} ${LITESQL}
- - make rpm -j$(nproc || echo 1)
- artifacts:
- paths:
- - build/rpmbuild/RPMS
- - build/rpmbuild/SRPMS
- when: always
- name: $CI_PROJECT_NAME-rpm-$CI_BUILD_ID
-
-
.template:basic_test: &basic_test
stage: test
tags:
@@ -153,3 +140,38 @@ test:sonar-qube:
- ~/sonar-scanner/bin/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir ./bw-outputs make biboumi test_suite
- cd ..
- ~/sonar-scanner/bin/sonar-scanner -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_LOGIN -Dsonar.language=cpp -Dsonar.cfamily.build-wrapper-output=build/bw-outputs -Dsonar.sourceEncoding=UTF-8 -Dsonar.sources=src/,louloulibs/,tests/ -Dsonar.projectKey=biboumi -Dsonar.projectName=Biboumi -Dsonar.projectVersion=3.0
+
+packaging:rpm:
+ stage: packaging
+ only:
+ - master@louiz/biboumi
+ tags:
+ - docker
+ image: docker.louiz.org/biboumi-test-fedora:latest
+ script:
+ - cmake .. -DCMAKE_CXX_COMPILER=${COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${BOTAN} ${UDNS} ${SYSTEMD} ${LIBIDN} ${LITESQL}
+ - make rpm -j$(nproc || echo 1)
+ artifacts:
+ paths:
+ - build/rpmbuild/RPMS
+ - build/rpmbuild/SRPMS
+ when: always
+ name: $CI_PROJECT_NAME-rpm-$CI_BUILD_ID
+
+packaging:deb:
+ stage: packaging
+ only:
+ - master@louiz/biboumi
+ tags:
+ - docker
+ image: docker.louiz.org/packaging-debian:latest
+ script:
+ - git checkout debian
+ - git merge --no-commit --no-ff master
+ - mk-build-deps
+ - apt install -y ./biboumi-build-deps*.deb
+ - debuild -b -us -uc
+ artifacts:
+ untracked: true
+ when: always
+ name: $CI_PROJECT_NAME-deb-$CI_BUILD_ID