This commit is contained in:
XGQT 2020-03-20 19:51:21 +01:00
parent eec973acda
commit bc28683e05
No known key found for this signature in database
GPG Key ID: 2089DEC77862433A

25
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,25 @@
image: alpine:3
stages:
- test
before_script:
- apk update && apk add alpine-sdk bash git python py3-lxml py3-pip python3-dev rsync wget xz
- pip3 install pkgcheck pyyaml
- git clone https://anongit.gentoo.org/git/proj/portage.git
- cd portage && python3 setup.py install
- cd repoman && python3 setup.py install
- cd ../.. && rm -rf portage
- adduser -S portage && addgroup portage
- mkdir -p /var/cache/distfiles
- mkdir -p /var/db/repos
- git clone https://anongit.gentoo.org/git/repo/gentoo.git /var/db/repos/gentoo
- git clone https://gitlab.com/src_prepare/src_prepare-overlay.git /var/db/repos/src_prepare-overlay
- git clone https://gitlab.com/src_prepare/scripts.git
- cp scripts/check-commit /usr/bin
test:
stage: test
script:
- cd /var/db/repos/src_prepare-overlay
- check-commit