# Basic notes: builds firejail on 5 different systems for 2 package systems: # 1. Debian-based systems. Use debian:jessie to ensure reasonable backwards # compat and ubuntu:rolling for new setups # 2. Redhat-based systems. Use centos:latest for reasonable backwards compat # and fedora:latest for new setups # 3. Alpine for installing directly from source # Also builds apparmor package for Ubuntu LTS build_ubuntu_package: image: ubuntu:rolling script: - apt-get update -qq - > DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config python3 gawk - ./configure - make deb - dpkg -i firejail*.deb - command -V firejail && firejail --version # - python3 contrib/sort.py etc/profile-*/*.profile etc/inc/*.inc build_debian_package: image: debian:stretch script: - apt-get update -qq - > apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config gawk - ./configure - make deb - dpkg -i firejail*.deb - command -V firejail && firejail --version build_redhat_package: image: almalinux:latest script: - dnf update -y - dnf install -y rpm-build gcc make - ./configure --prefix=/usr - make rpms - rpm -i firejail*.rpm - command -V firejail && firejail --version build_fedora_package: image: fedora:latest script: - dnf update -y - dnf install -y rpm-build gcc make - ./configure --prefix=/usr - make rpms - rpm -i firejail*.rpm - command -V firejail && firejail --version # - python3 contrib/sort.py etc/profile-*/*.profile etc/inc/*.inc build_src_package: image: alpine:latest script: - apk update - apk upgrade - apk add build-base linux-headers python3 gawk - ./configure --prefix=/usr - make - make install-strip - command -V firejail && firejail --version # - python3 contrib/sort.py etc/profile-*/*.profile etc/inc/*.inc build_no_apparmor: image: ubuntu:latest script: - apt-get update -qq - > DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential lintian pkg-config gawk - ./configure - make dist - ./mkdeb.sh --disable-apparmor - dpkg -i firejail*.deb - command -V firejail && firejail --version - firejail --version | grep -F 'AppArmor support is disabled' 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 - | cat >>/etc/apt/sources.list <