diff options
author | 2019-06-21 16:03:15 +0200 | |
---|---|---|
committer | 2019-06-21 17:43:14 +0200 | |
commit | 4cf51b591947feda0751dee564848dbc9fa6c96f (patch) | |
tree | 16575804f9d26318bae07ac8314ea9c22c996193 /.gitlab-ci.yml | |
parent | fail build if any step in the script fails (diff) | |
download | firejail-4cf51b591947feda0751dee564848dbc9fa6c96f.tar.gz firejail-4cf51b591947feda0751dee564848dbc9fa6c96f.tar.zst firejail-4cf51b591947feda0751dee564848dbc9fa6c96f.zip |
extend gitlab-ci configuration to run Debian CI tests
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd8948e56..b5d01b019 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
@@ -47,3 +47,26 @@ build_apparmor: | |||
47 | - apt-get update -qq | 47 | - apt-get update -qq |
48 | - apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config | 48 | - apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config |
49 | - ./configure --prefix=/usr && make deb-apparmor && dpkg -i firejail-apparmor*.deb | 49 | - ./configure --prefix=/usr && make deb-apparmor && dpkg -i firejail-apparmor*.deb |
50 | |||
51 | debian_ci: | ||
52 | image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest | ||
53 | variables: | ||
54 | DEBFULLNAME: "$GITLAB_USER_NAME" | ||
55 | DEBEMAIL: "$GITLAB_USER_EMAIL" | ||
56 | before_script: | ||
57 | - git checkout -B ci_build $CI_COMMIT_SHA | ||
58 | - gitlab-ci-enable-sid | ||
59 | - gitlab-ci-enable-experimental | ||
60 | - echo "deb-src http://deb.debian.org/debian sid main" >> /etc/apt/sources.list | ||
61 | - echo "deb-src http://deb.debian.org/debian experimental main" >> /etc/apt/sources.list | ||
62 | - apt-get update | ||
63 | - git config user.email "$GITLAB_USER_NAME" && git config user.name "$GITLAB_USER_EMAIL" | ||
64 | - cd $CI_PROJECT_DIR/.. && (apt-get source --download-only -t experimental firejail || apt-get source --download-only firejail) | ||
65 | - cd $CI_PROJECT_DIR && tar xf ../firejail_*.debian.tar.* | ||
66 | - 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 | ||
67 | - git add debian && git commit -m "add debian/" | ||
68 | - export CI_COMMIT_SHA=$(git rev-parse HEAD) | ||
69 | script: | ||
70 | - apt-get --no-install-recommends install pkg-config | ||
71 | - gitlab-ci-git-buildpackage | ||
72 | - gitlab-ci-lintian | ||