Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julien Ledoux
lemonldap-ng
Commits
691715e7
Commit
691715e7
authored
Dec 10, 2018
by
Yadd
Browse files
Update gitlab-ci
parent
95e0fac6
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
691715e7
.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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment