firejail/.gitlab-ci.yml
Fred-Barclay 3ef00dab34
Switch ubuntu:latest to ubuntu:rolling for Gitlab CI
Ubuntu:rolling is the latest Ubuntu release (LTS and/or non-LTS).
Since debian:latest already provides a reasonable base for testing
firejail builds on older Debian-based systems, use ubuntu:rolling
to test on relatively new systems.
2019-01-26 10:57:07 -06:00

41 lines
1.4 KiB
YAML

# 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
build_ubuntu_package:
image: ubuntu:rolling
script:
- apt-get update -qq
- apt-get install -y -qq build-essential lintian
- ./configure --prefix=/usr && make deb && dpkg -i firejail*.deb
build_debian_package:
image: debian:jessie
script:
- apt-get update -qq
- apt-get install -y -qq build-essential lintian
- ./configure --prefix=/usr && make deb && dpkg -i firejail*.deb
build_redhat_package:
image: centos:latest
script:
- yum update -y
- yum install -y rpm-build gcc make
- ./configure --prefix=/usr && make rpms && yum install -y firejail*.rpm
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
build_src_package:
image: alpine:latest
script:
- apk update
- apk upgrade
- apk add build-base linux-headers
- ./configure --prefix=/usr && make && make install-strip