diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-02-03 12:35:55 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-02-06 16:34:06 +0100 |
commit | b30cdab8f059a5b7162aa533be6856cfef2de1b8 (patch) | |
tree | a7a2e552f2269f96ab3c0dc0e9a3797c351a7e9a | |
parent | 6eb4245784b734e24870e2ba3c946527feb7f709 (diff) |
gitlab-ci archlinux build
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | .gitlab-ci.yml | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 982c844..8b29b77 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,11 +4,14 @@ stages: - build before_script: - - apt-get -qq update - - apt-get install -y git debhelper dpkg-dev build-essential fakeroot flawfinder wget unzip - - apt-get install -y libpcap-dev libselinux1-dev - - apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-common clang - - apt-get install -y autoconf automake dh-autoreconf + - test ! -r /etc/debian_version || apt-get -qq update + - test ! -r /etc/debian_version || apt-get install -y git debhelper dpkg-dev build-essential fakeroot flawfinder wget unzip + - test ! -r /etc/debian_version || apt-get install -y libpcap-dev libselinux1-dev + - test ! -r /etc/debian_version || apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-common clang + - test ! -r /etc/debian_version || apt-get install -y autoconf automake dh-autoreconf + - test ! -r /etc/arch-release || pacman -Sy archlinux-keyring --noconfirm + - test ! -r /etc/arch-release || pacman -Syu --noconfirm + - test ! -r /etc/arch-release || pacman -S --noconfirm binutils gcc base-devel git build: script: @@ -31,6 +34,16 @@ build-debian: - config.log when: always +build-archlinux: + image: finalduty/archlinux:daily + script: + - useradd builduser -m + - passwd -d builduser + - chown -R builduser . + - su -m builduser bash -c 'makepkg' + - su -m builduser bash -c 'makepkg -p PKGBUILD.dev --skipchecksums' + stage: build + build-mingw: script: - autoreconf -fi |