Commit d5e05f82 authored by Booloki's avatar Booloki

CI enhancements

parent ad20a5d9
Pipeline #80 passed with stage
in 18 seconds
......@@ -25,7 +25,7 @@ build:deb-package:
script:
# Update env
- apt-get update -qq
- apt-get install -qq -y git dh-make build-essential devscripts autoconf autotools-dev
- apt-get install -qq -y apt-utils git dh-make build-essential devscripts autoconf autotools-dev
# Copy Debian packaging files
- cp -r packaging/debian .
# Add changelog entry
......@@ -99,7 +99,7 @@ build:archlinux-package:
- build/*
## Stage "test" : Install/Uninstall deb packages
test:deb-test:
test:deb-install:
stage: test
image: ubuntu:bionic
tags:
......@@ -123,7 +123,7 @@ test:deb-test:
- build:deb-package
## Stage "test" : Install/Uninstall ArchLinux packages
test:archlinux-test:
test:archlinux-install:
stage: test
image: archlinux/base:latest
tags:
......@@ -131,14 +131,14 @@ test:archlinux-test:
only:
- tags
script:
- pacman -Syu --noconfirm -q
- pacman -S --noconfirm -q git base-devel sudo
- pacman -Syu --noconfirm --noprogressbar -q
- pacman -S --noconfirm --noprogressbar -q git base-devel sudo
# Need dedicated user for building
- useradd builduser -m # Create the builduser
- passwd -d builduser # Delete the buildusers password
- printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo
# Clone, build and install package-query (dependancy for yaourt)
- sudo -u builduser bash -c 'cd ~ && git clone https://aur.archlinux.org/package-query.git && cd package-query && makepkg -si --noconfirm'
- sudo -u builduser bash -c 'cd ~ && git clone https://aur.archlinux.org/package-query.git && cd package-query && makepkg -si --noconfirm --noprogressbar'
# Clone, build and install yaourt
- sudo -u builduser bash -c 'cd ~ && git clone https://aur.archlinux.org/yaourt.git && cd yaourt && makepkg -si --noconfirm'
# AUR management with yaourt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment