Commit 522b4a10 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

Setup gitlab-ci

* build.sh: Common build script.
* .gitlab-ci.yml: Rules for GitLab CI.
parent 9b58df42
Pipeline #336 failed with stage
in 0 seconds
stages:
- build
- publish
build-stable:
stage: build
script:
- docker pull gadl/spot-debuild:stable
- docker run --rm=true -v $PWD:/remote gadl/spot-debuild:stable /remote/build.sh stable
build-unstable:
stage: build
script:
- docker pull gadl/spot-debuild
- docker run --rm=true -v $PWD:/remote gadl/spot-debuild /remote/build.sh unstable
publish:
only:
- master
stage: publish
script:
- dput lrde *.changes
#!/bin/sh
cd /remote
git clone https://gitlab.lrde.epita.fr/spot/divine-ltsmin-deb.git
cd divine-ltsmin-deb
case $1 in
unstable);;
stable) sed -i -e 's/unstable/stable/' debian/changelog;;
esac
DEB_BUILD_OPTIONS='parallel=8' gbp buildpackage --git-ignore-new
cd ..
rm -rf divine-ltsmin-deb
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