diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..555643b6f --- /dev/null +++ b/.gitlab-ci.yml | |||
@@ -0,0 +1,41 @@ | |||
1 | # Basic notes: builds firejail on 5 different systems for 2 package systems: | ||
2 | # 1. Debian-based systems. Use debian:jessie to ensure reasonable backwards | ||
3 | # compat and ubuntu:latest for new setups | ||
4 | # 2. Redhat-based systems. Use centos:latest for reasonable backwards compat | ||
5 | # and fedora:latest for new setups | ||
6 | # 3. Alpine for installing directly from source | ||
7 | build_ubuntu_package: | ||
8 | image: ubuntu:latest | ||
9 | script: | ||
10 | - apt-get update -qq | ||
11 | - apt-get install -y -qq build-essential lintian | ||
12 | - ./configure --prefix=/usr && make deb && dpkg -i firejail*.deb | ||
13 | |||
14 | build_debian_package: | ||
15 | image: debian:jessie | ||
16 | script: | ||
17 | - apt-get update -qq | ||
18 | - apt-get install -y -qq build-essential lintian | ||
19 | - ./configure --prefix=/usr && make deb && dpkg -i firejail*.deb | ||
20 | |||
21 | build_redhat_package: | ||
22 | image: centos:latest | ||
23 | script: | ||
24 | - yum update -y | ||
25 | - yum install -y rpm-build gcc make | ||
26 | - ./configure --prefix=/usr && make rpms && yum install -y firejail*.rpm | ||
27 | |||
28 | build_fedora_package: | ||
29 | image: fedora:latest | ||
30 | script: | ||
31 | - dnf update -y | ||
32 | - dnf install -y rpm-build gcc make | ||
33 | - ./configure --prefix=/usr && make rpms && rpm -i firejail*.rpm | ||
34 | |||
35 | build_src_package: | ||
36 | image: alpine:latest | ||
37 | script: | ||
38 | - apk update | ||
39 | - apk upgrade | ||
40 | - apk add build-base linux-headers | ||
41 | - ./configure --prefix=/usr && make && make install-strip | ||