blob: 42752822a5a1915c369ee6f53558ce0593558bd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
image: "registry.devseed.de/all-the-things/docker-archlinux"
stages:
- check
- build
- release
before_script:
- sudo pacman -Sy --noconfirm pacman-contrib
- git config --global user.email "${GIT_USER_EMAIL:-$GITLAB_USER_EMAIL}"
- git config --global user.name "${GIT_USER_NAME:-$GITLAB_USER_NAME}"
namcap:
stage: check
script:
- namcap -i PKGBUILD
allow_failure: true
update_hash:
stage: check
script:
# update package hash for integrity check
- updpkgsums
cache:
key: pkgbuild
paths:
- PKGBUILD
makepkg:
stage: build
needs: ["update_hash"]
script:
# Test building a source package
- sudo -u builder makepkg -C -S --log --noconfirm
# Test building and installing the package
- sudo -u builder makepkg -C -i --log --noconfirm
push:
stage: release
script:
- git add PKGBUILD
- git diff-index --quiet HEAD || git commit -m "updates hash for AppImage"
- git push -o ci.skip "https://${GITLAB_USER_NAME}:${RENOVATE_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_BRANCH}"
only:
refs:
- merge_requests
|