summarylogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: c0e13d882f4688852a40564f384a01f019c6737a (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
# * Prepare

image: archlinux/archlinux:base-devel

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

stages:
  - test

before_script:
  - pacman --noconfirm -Syu
  - useradd -m notroot
  - echo "$DOSUDO" > /etc/sudoers.d/notroot

# * Test

build-package:
  stage: test
  script:
    - su notroot -c "makepkg --noconfirm --syncdeps --rmdeps --install --clean"
    - python -c 'import cocotb_bus; print("All OK")'
  artifacts:
    paths:
      - python-cocotb-bus-*.pkg.tar.zst