diff options
author | Cayetano Santos | 2020-05-01 17:51:24 +0200 |
---|---|---|
committer | Cayetano Santos | 2020-05-01 17:51:24 +0200 |
commit | b41de6e9535754cf0006cd5b40e111dfe2ea243d (patch) | |
tree | 9246aedbd5cea31e31fc93a1dbff41680b80f2c8 | |
parent | 5c3e002dc4f5182299ca861c544e98d3463bacf3 (diff) | |
download | aur-b41de6e9535754cf0006cd5b40e111dfe2ea243d.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..1b8484d0de17 --- /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" + - cd python-cocotb + - su notroot -c "makepkg --noconfirm --syncdeps --rmdeps --install --clean" + - python -c 'import cocotb; print("All OK")' |