src_prepare-overlay/.gitlab-ci.yml
2020-03-20 19:51:21 +01:00

26 lines
834 B
YAML

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