summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCayetano Santos2020-05-01 17:57:09 +0200
committerCayetano Santos2020-05-01 17:57:09 +0200
commit72349e918a28c09e330256772509d83cabdb82da (patch)
tree4bf71385c4b331e3ea31044b357d716aa7b412af
parent62bffa9cff2b9ec21342f749764724ceaeac31d3 (diff)
downloadaur-72349e918a28c09e330256772509d83cabdb82da.tar.gz
ci: updated yaml file
-rw-r--r--.gitlab-ci.yml26
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")'