Commit 49f2f65e authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

setup gitlab CI

parent e9698041
Pipeline #349 failed with stages
in 53 seconds
stages:
- build
- publish
build-stable:
stage: build
except:
- /^upstream/
image: gadl/spot-debuild:stable
script:
- ls -l
- ./build.sh stable
- ls -l _build_stable
artifacts:
paths:
- _build_stable/
build-unstable:
stage: build
except:
- /^upstream/
image: gadl/spot-debuild
script:
- ls -l
- ./build.sh unstable
- ls -l _build_unstable
artifacts:
paths:
- _build_unstable/
publish:
only:
- master
stage: publish
dependencies:
- build-stable
- build-unstable
script:
- cd _build_stable
- ls -l
- dput lrde *.changes
- cd ../_build_unstable
- ls -l
- dput lrde *.changes
#!/bin/sh
rm -rf "_build_$1"
mkdir -p "_build_$1"
cd "_build_$1"
git clone https://gitlab.lrde.epita.fr/spot/spins-ltsmin-deb.git
cd spins-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 spins-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