Commit 18060238 authored by Booloki's avatar Booloki

Change build CI stage from yaourt to yay

parent f5f0e409
Pipeline #110 failed with stages
in 11 minutes and 49 seconds
......@@ -79,10 +79,10 @@ build:archlinux-package:
- 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 (yaourt dependancy)
- sudo -u builduser bash -c 'cd ~ && git clone https://aur.archlinux.org/package-query.git && cd package-query && makepkg -si --noconfirm'
# Clone, build and install yaourt
- sudo -u builduser bash -c 'cd ~ && git clone https://aur.archlinux.org/yaourt.git && cd yaourt && makepkg -si --noconfirm'
# 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)
- yay -Syu --noconfirm --noprogressbar -q
# Package build
- sudo -u builduser bash -c "cd ~ && git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.lokizone.net/booloki/wazzuf-ripper.git && cd wazzuf-ripper && cp packaging/archlinux/PKGBUILD . && sed -i s/^pkgver=.*/pkgver=${CI_COMMIT_TAG}/ PKGBUILD && updpkgsums && makepkg -s"
- mkdir build
......@@ -139,7 +139,7 @@ test:archlinux-install:
- echo 'Server = http://miroir.lan/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
# Add multilib repository
- echo -e "[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
# Update env
# Update env (base)
- pacman -Syu --noconfirm --noprogressbar -q
# Dependencies install
- pacman -S --noconfirm --noprogressbar -q git base-devel sudo
......@@ -149,6 +149,8 @@ test:archlinux-install:
- printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo
# 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)
- yay -Syu --noconfirm --noprogressbar -q
# Install check (cli only)
- sudo -u builduser bash -c 'yay -U --noconfirm build/wazzuf-ripper-[0-9]?*.pkg.tar.xz'
# Uninstall check
......
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