summarylogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 74d0413da4e477f228f5cab117c4f36081b44afc (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
image: archlinux

variables:
  DOSUDO: "notroot ALL=(ALL) NOPASSWD: ALL"

stages:
  - test

before_script:
  - pacman --noconfirm -Syu
  - pacman --noconfirm -S sudo git fakeroot binutils
  - useradd -m notroot
  - echo "$DOSUDO" > /etc/sudoers.d/notroot

# * Test

build-package:
  stage: test
  script:
    - cd /home/notroot
    - su notroot -c "git clone https://aur.archlinux.org/python-edalize.git"
    - cd python-edalize
    - su notroot -c "makepkg --noconfirm --syncdeps --rmdeps --install --clean"
    - python -c 'import edalize; print("All OK")'
    - cd /home/notroot
    - su notroot -c "git clone https://aur.archlinux.org/python-fusesoc.git"
    - cd python-fusesoc
    - su notroot -c "makepkg --noconfirm --syncdeps --rmdeps --install --clean"
    - fusesoc list
    - python -c 'import fusesoc; print("All OK")'