From d9cef171e427c27f60c0e19f8be90a39baf9c351 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 14 Jun 2019 14:16:27 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7412e28..e7e25a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 +check_pkgbuild: + stage: check_pkgbuild + script: + - namcap PKGBUILD > PKGBUILD.namcap.out + artifacts: + paths: + - PKGBUILD.namcap.out -build:package: - stage: compile - image: registry.higherlearning.eu/personal/homelab/docker/arch-pkg-build - script: - - pacman -Sy - - sudo -u builduser bash -c 'makepkg -s' \ No newline at end of file +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 \ No newline at end of file