Commit 67749af3 authored by Booloki's avatar Booloki
Browse files

[CI] Add dependencies for package tests

parent 563f45d1
Pipeline #2495 failed with stages
in 13 minutes and 50 seconds
......@@ -11,8 +11,8 @@ build:
script:
# Use local repository mirror
- echo 'Server = http://miroir.lan/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
# Update env
- pacman -Syu --noconfirm -q
# Update env (base)
- pacman -Syu --noconfirm --noprogressbar -q
# Dependencies install
- pacman -S --noconfirm -q git base-devel sudo pacman-contrib libglvnd
# Need dedicated user for building
......@@ -38,14 +38,28 @@ test:
script:
# Use local repository mirror
- echo 'Server = http://miroir.lan/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
# Update env
- pacman -Syu --noconfirm -q
# Install package
- pacman -U build/vlc-nox*.pkg.tar.zst
# Update env (base)
- pacman -Syu --noconfirm --noprogressbar -q
# Build dependencies install
- pacman -S --noconfirm -q git base-devel sudo pacman-contrib
# 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
# Add PACKAGER to makepkg
- echo 'PACKAGER="Gitlab CI packager <booloki@lokizone.net>"' >> /etc/makepkg.conf
# Clone and install yay (binary version)
- sudo -u builduser bash -c 'cd ~ && git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si --noconfirm'
# Update env (with AUR)
- sudo -u builduser bash -c 'yay --noconfirm --noprogressbar -q'
# Install dependencies
- sudo -u builduser bash -c "yay -S --noconfirm --noprogressbar -q a52dec libdvbpsi libxpm libdca libproxy lua libidn libmatroska taglib libmpcdec ffmpeg faad2 libmad libmpeg2 xcb-util-keysyms libtar libxinerama libsecret libupnp libarchive freetype2 fribidi harfbuzz fontconfig libxml2 gnutls libplacebo aribb24"
# Install check
- sudo -u builduser bash -c 'yay -U --noconfirm build/vlc-nox*.pkg.tar.zst'
# basic tests
- cvlc --version
- cvlc --run-time=10 https://radio.lokizone.net/low.mp3 vlc://quit
# Uninstall check
- pacman -R vlc-nox
- sudo -u builduser bash -c 'yay -R --noconfirm vlc-nox'
dependencies:
- build
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