1
0
mirror of https://github.com/alrayyes/st synced 2023-11-14 15:56:30 +00:00

Update .gitlab-ci.yml

This commit is contained in:
Ryan 2019-06-14 14:16:27 +00:00
parent cf55b76460
commit d9cef171e4

View File

@ -1,12 +1,37 @@
image: ${CI_REGISTRY}/personal/homelab/docker/arch-pkg-build:latest
stages:
- compile
- check_pkgbuild
- build_package
- install_package
- check_package
services:
- docker:dind
build:package:
stage: compile
image: registry.higherlearning.eu/personal/homelab/docker/arch-pkg-build
check_pkgbuild:
stage: check_pkgbuild
script:
- pacman -Sy
- sudo -u builduser bash -c 'makepkg -s'
- namcap PKGBUILD > PKGBUILD.namcap.out
artifacts:
paths:
- PKGBUILD.namcap.out
build_package:
stage: build_package
script:
- makepkg --syncdeps --noconfirm --log --check
artifacts:
paths:
- "*.log"
- "*.pkg.tar.xz"
install_package:
stage: install_package
script:
- sudo pacman -U *.pkg.tar.xz
check_package:
stage: check_package
script:
- namcap *.pkg.tar.xz > PKG.namcap.out
artifacts:
paths:
- PKG.namcap.out