Commit 563f45d1 authored by Booloki's avatar Booloki
Browse files

[CI] Add basic package tests

parent efa75d8f
Pipeline #2492 failed with stages
in 2 minutes and 18 seconds
stages:
- build
- test
## Stage for Arch Linux packaging build
build:
......@@ -7,9 +8,6 @@ build:
image: archlinux/base:latest
tags:
- archlinux
only:
- master
- schedules
script:
# Use local repository mirror
- echo 'Server = http://miroir.lan/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
......@@ -30,3 +28,24 @@ build:
name: "$CI_JOB_STAGE"
paths:
- build/*
# Stage "test" : Install/Uninstall ArchLinux packages and basic tests
test:
stage: test
image: archlinux/base:latest
tags:
- archlinux
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
# basic tests
- cvlc --version
- cvlc --run-time=10 https://radio.lokizone.net/low.mp3 vlc://quit
# Uninstall check
- pacman -R 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