summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCayetano Santos2020-05-01 17:21:34 +0200
committerCayetano Santos2020-05-01 17:21:34 +0200
commitdbc79baa567942cab197193d511faa3fc5759625 (patch)
tree3e342ded0501667beb5e852d3b0e10e6638bbf2f
parent876181cada0fb3e00ed25e43bf15a2411cb7466c (diff)
downloadaur-dbc79baa567942cab197193d511faa3fc5759625.tar.gz
ci: updated yaml file
-rw-r--r--.gitlab-ci.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000000..74d0413da4e4
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,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")'