diff options
author | Cayetano Santos | 2020-05-01 17:57:09 +0200 |
---|---|---|
committer | Cayetano Santos | 2020-05-01 17:57:09 +0200 |
commit | 72349e918a28c09e330256772509d83cabdb82da (patch) | |
tree | 4bf71385c4b331e3ea31044b357d716aa7b412af | |
parent | 62bffa9cff2b9ec21342f749764724ceaeac31d3 (diff) | |
download | aur-72349e918a28c09e330256772509d83cabdb82da.tar.gz |
ci: updated yaml file
-rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000000..bdafa7d82e65 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +# * Prepare + +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-cocotb-git.git" + - cd python-cocotb-git + - su notroot -c "makepkg --noconfirm --syncdeps --rmdeps --install --clean" + - python -c 'import cocotb; print("All OK")' |