Commit 691715e7 authored by Yadd's avatar Yadd
Browse files

Update gitlab-ci

parent 95e0fac6
.build_job: &job_build
stage: build
script:
- apt-get update && apt-get -y dist-upgrade
- ci-build-pkg
artifacts:
expire_in: 1 hour
paths:
- result/*
stages:
- build
- build
build-debian:
stage: build
image: debian:stretch
script: |
echo "Installing build dependencies..."
apt-get update
apt-get install -y build-essential
apt-get build-dep -y .
before_script:
- env | grep ^CI_
# Converting to native package...
- sed -i "1{s/-1) /$suffix) /}" debian/changelog
- sed -i "1{s/-2) /$suffix) /}" debian/changelog
- sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format
echo "Converting to native package..."
suffix="~$CI_COMMIT_SHA"
sed -i "1{s/-1) /$suffix) /}" debian/changelog
sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format
build_stretch:
image: buildpkg/debian:stretch
<<: *job_build
echo "Building LemonLDAP..."
dpkg-buildpackage
build_buster:
image: buildpkg/debian:buster
<<: *job_build
#build_xenial:
# image: buildpkg/ubuntu:xenial
# <<: *job_build
build_bionic:
image: buildpkg/ubuntu:bionic
<<: *job_build
echo "Moving artifacts..."
mkdir artifacts
mv ../*.tar.xz ../*.dsc ../*.changes ../*.deb artifacts
artifacts:
paths:
- 'artifacts/*'
expire_in: 1 hour
Supports Markdown
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