mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
extend gitlab-ci configuration to run Debian CI tests
This commit is contained in:
parent
7d9db83559
commit
4cf51b5919
1 changed files with 23 additions and 0 deletions
|
|
@ -47,3 +47,26 @@ build_apparmor:
|
|||
- apt-get update -qq
|
||||
- apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config
|
||||
- ./configure --prefix=/usr && make deb-apparmor && dpkg -i firejail-apparmor*.deb
|
||||
|
||||
debian_ci:
|
||||
image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest
|
||||
variables:
|
||||
DEBFULLNAME: "$GITLAB_USER_NAME"
|
||||
DEBEMAIL: "$GITLAB_USER_EMAIL"
|
||||
before_script:
|
||||
- git checkout -B ci_build $CI_COMMIT_SHA
|
||||
- gitlab-ci-enable-sid
|
||||
- gitlab-ci-enable-experimental
|
||||
- echo "deb-src http://deb.debian.org/debian sid main" >> /etc/apt/sources.list
|
||||
- echo "deb-src http://deb.debian.org/debian experimental main" >> /etc/apt/sources.list
|
||||
- apt-get update
|
||||
- git config user.email "$GITLAB_USER_NAME" && git config user.name "$GITLAB_USER_EMAIL"
|
||||
- cd $CI_PROJECT_DIR/.. && (apt-get source --download-only -t experimental firejail || apt-get source --download-only firejail)
|
||||
- cd $CI_PROJECT_DIR && tar xf ../firejail_*.debian.tar.*
|
||||
- VERSION=$(grep ^PACKAGE_VERSION= configure | cut -d"'" -f2) && dch -v ${VERSION}-0.1~ci "Non-maintainer upload." && git archive -o ../firejail_${VERSION}.orig.tar.gz HEAD && pristine-tar commit ../firejail_${VERSION}.orig.tar.gz ci_build && git branch -m pristine-tar origin/pristine-tar
|
||||
- git add debian && git commit -m "add debian/"
|
||||
- export CI_COMMIT_SHA=$(git rev-parse HEAD)
|
||||
script:
|
||||
- apt-get --no-install-recommends install pkg-config
|
||||
- gitlab-ci-git-buildpackage
|
||||
- gitlab-ci-lintian
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue